| | |
| | | WindowState="Maximized" |
| | | x:Name="window" |
| | | BorderBrush="Transparent" |
| | | pu:WindowXCaption.Buttons="All" |
| | | pu:WindowXCaption.Buttons="None" |
| | | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI" |
| | | xmlns:hc="clr-namespace:HMI.Core;assembly=HMI.Core" |
| | |
| | | FontFamily="/HMI.UI;component/Resources/Font/#iconfont" |
| | | Content="" |
| | | RenderTransformOrigin="0.5,0.5" |
| | | Click="Button_Click_2"> |
| | | Click="Button_Click"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXCaption.MinimizeButtonStyleKey}}"> |
| | | <Setter Property="Focusable" Value="False"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding ShowMenu}" Value="True"> |
| | | <Setter Property="Button.RenderTransform"> |
| | |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | |
| | | <Button FontSize="18" Click="Button_Click" x:Name="minBtn"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXCaption.MinimizeButtonStyleKey}}"> |
| | | <Setter Property="Focusable" Value="False"/> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | |
| | | <Button FontSize="18" Click="Button_Click" x:Name="maxBtn"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXCaption.MaximizeButtonStyleKey}}"> |
| | | <Setter Property="Focusable" Value="False"/> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | |
| | | <Button FontSize="18" Click="Button_Click" x:Name="closeBtn"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXCaption.CloseButtonStyleKey}}"> |
| | | <Setter Property="Focusable" Value="False"/> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | </StackPanel> |
| | | </pu:WindowXCaption.ExtendControl> |