|
326 | 326 | <ResourceDictionary>
|
327 | 327 | <Style TargetType="{x:Type Button}">
|
328 | 328 | <Setter Property="Foreground"
|
329 |
| - Value="{DynamicResource BlackBrush}"/> |
| 329 | + Value="{DynamicResource BlackBrush}" /> |
330 | 330 | <Setter Property="Background"
|
331 | 331 | Value="{DynamicResource TransparentWhiteBrush}" />
|
332 | 332 | <Setter Property="HorizontalContentAlignment"
|
|
540 | 540 | Mode="OneWay" />
|
541 | 541 | </MultiBinding>
|
542 | 542 | </Button.Visibility>
|
543 |
| - <Path x:Name="MaxPath" SnapsToDevicePixels="True" |
544 |
| - Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}" > |
545 |
| - </Path> |
| 543 | + <!-- normal state --> |
| 544 | + <Path x:Name="PART_MaxPath" |
| 545 | + Width="10" |
| 546 | + Height="10" |
| 547 | + Data="F1M0,0L0,9 9,9 9,0 0,0 0,3 8,3 8,8 1,8 1,3z" |
| 548 | + SnapsToDevicePixels="True" |
| 549 | + Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}" /> |
546 | 550 | </Button>
|
547 | 551 |
|
548 | 552 | <Button x:Name="PART_Close"
|
|
558 | 562 | </Button>
|
559 | 563 | </StackPanel>
|
560 | 564 | <ControlTemplate.Triggers>
|
561 |
| - <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:MetroWindow}}, Path=WindowState}" Value="Normal"> |
562 |
| - <Setter TargetName="MaxPath" Property="Data" Value="F1M0,0L0,9 9,9 9,0 0,0 0,3 8,3 8,8 1,8 1,3z" /> |
563 |
| - </DataTrigger> |
564 |
| - <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:MetroWindow}}, Path=WindowState}" Value="Maximized"> |
565 |
| - <Setter TargetName="MaxPath" Property="Data" Value="F1M0,10L0,3 3,3 3,0 10,0 10,2 4,2 4,3 7,3 7,6 6,6 6,5 1,5 1,10z M1,10L7,10 7,7 10,7 10,2 9,2 9,6 6,6 6,9 1,9z" /> |
| 565 | + <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:MetroWindow}}, Path=WindowState}" |
| 566 | + Value="Maximized"> |
| 567 | + <Setter TargetName="PART_MaxPath" |
| 568 | + Property="Data" |
| 569 | + Value="F1M0,10L0,3 3,3 3,0 10,0 10,2 4,2 4,3 7,3 7,6 6,6 6,5 1,5 1,10z M1,10L7,10 7,7 10,7 10,2 9,2 9,6 6,6 6,9 1,9z" /> |
566 | 570 | </DataTrigger>
|
567 | 571 | </ControlTemplate.Triggers>
|
568 | 572 | </ControlTemplate>
|
|
0 commit comments