Created
January 28, 2020 17:43
-
-
Save SpacePurr/531b0ac8cf14da1ec536c7e0c13023f3 to your computer and use it in GitHub Desktop.
Xaml. Button Transparent Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="TransparentStyle" TargetType="{x:Type Button}"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="Button" > | |
<Border Background="Transparent" Name="Border" > | |
<ContentPresenter/> | |
</Border> | |
<ControlTemplate.Triggers> | |
<Trigger Property="IsMouseOver" Value="True"> | |
<Setter TargetName="Border" Property="Background" Value="#FF8CB3EE"/> | |
</Trigger> | |
<Trigger Property="IsPressed" Value="True"> | |
<Setter TargetName="Border" Property="Background" Value="#FF285395"/> | |
</Trigger> | |
</ControlTemplate.Triggers> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment