clear button style
This commit is contained in:
@@ -28,7 +28,6 @@
|
|||||||
CaretBrush="{x:Static UI:Theme.Foreground}" />
|
CaretBrush="{x:Static UI:Theme.Foreground}" />
|
||||||
|
|
||||||
<Button Name="SearchClearButton"
|
<Button Name="SearchClearButton"
|
||||||
Foreground="{x:Static UI:Theme.Foreground}"
|
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
FontFamily="Marlett"
|
FontFamily="Marlett"
|
||||||
@@ -37,6 +36,33 @@
|
|||||||
Height="17"
|
Height="17"
|
||||||
Margin="2,0,4,0"
|
Margin="2,0,4,0"
|
||||||
Visibility="Hidden"
|
Visibility="Hidden"
|
||||||
Click="SearchClearButton_Click">r</Button>
|
Click="SearchClearButton_Click" >r
|
||||||
|
|
||||||
|
<Button.Style>
|
||||||
|
<Style TargetType="Button">
|
||||||
|
<Setter Property="Background" Value="{x:Static UI:Theme.Background}"/>
|
||||||
|
<Setter Property="Foreground" Value="{x:Static UI:Theme.Foreground2}"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border BorderThickness="1"
|
||||||
|
BorderBrush="{TemplateBinding Foreground}"
|
||||||
|
SnapsToDevicePixels="True">
|
||||||
|
|
||||||
|
<ContentPresenter HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="Foreground" Value="{x:Static UI:Theme.Heading}"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Button.Style>
|
||||||
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
Reference in New Issue
Block a user