/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<Window.Resources> <Style TargetType="Button"> <Setter Property="Background" Value="Blue" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="FontWeight" Value="Bold" /> </Trigger> </Style.Triggers> </Style> <Style x:Key="style1"> <Setter Property="TextBlock.Padding" Value="20" /> </Style> </Window.Resources> <StackPanel> </StackPanel>