„Styles/Button_Hover“ hinzufügen
This commit is contained in:
parent
d64026b5e1
commit
89fb323a00
22
Styles/Button_Hover
Normal file
22
Styles/Button_Hover
Normal file
|
@ -0,0 +1,22 @@
|
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style BasedOn="{StaticResource {x:Type Button}}"
|
||||
TargetType="{x:Type Button}"
|
||||
x:Key="Button_Hover">
|
||||
<Setter Property="Background" Value="#FF2F08A0"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border Background="{TemplateBinding Background}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#FF0C0227"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
Loading…
Reference in New Issue
Block a user