Created
April 22, 2014 06:52
-
-
Save dkalamari/11167794 to your computer and use it in GitHub Desktop.
WPF image opacity in button style
This file contains hidden or 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="btnCustom" TargetType="{x:Type Button}"> | |
<Setter Property="Height" Value="50"/> | |
<Setter Property="Width" Value="80"/> | |
<Setter Property="Margin" Value="5,2,0,5"/> | |
<Style.Resources> | |
<Style TargetType="Image"> | |
<Style.Triggers> | |
<Trigger Property="IsEnabled" Value="False"> | |
<Setter Property="Opacity" Value="0.5" /> | |
</Trigger> | |
</Style.Triggers> | |
</Style> | |
</Style.Resources> | |
</Style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment