Revision: 31426
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 4, 2010 19:52 by jiewmeng
Initial Code
<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> <Button>This is a button</Button> <TextBlock Style="{StaticResource style1}">This is a text block</TextBlock> </StackPanel>
Initial URL
Initial Description
Initial Title
WPF: Styles & Triggers
Initial Tags
Initial Language
C#