68 lines
4.1 KiB
XML
68 lines
4.1 KiB
XML
<DockPanel x:Class="ModifyImagePanelV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtPHOTOLib="clr-namespace:EgtPHOTOLib">
|
|
|
|
<DockPanel.Resources>
|
|
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
|
|
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Margin" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" CornerRadius="0" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Background" Value="#FFF4F4F4"/>
|
|
<Setter Property="BorderBrush" Value="#FFADB2B5"/>
|
|
<Setter Property="TextElement.Foreground" Value="#FF838383"/>
|
|
</Trigger>
|
|
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
|
<Setter Property="ToggleButton.BorderBrush" Value="#FF095CA8" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#008BFF"/>
|
|
<Setter Property="BorderBrush" Value="#008BFF"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="#E1B957"/>
|
|
<Setter Property="BorderBrush" Value="#E1B957"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ToolBar_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="30"/>
|
|
</Style>
|
|
</DockPanel.Resources>
|
|
|
|
<Button ToolTip="{Binding GetModifyImage}"
|
|
Style="{StaticResource ToolBar_Button}"
|
|
Command="{Binding Modify_Command}">
|
|
<Image Source="/Resources/InstrumentPanel/Matitina.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
</DockPanel>
|
|
|