Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <!--<SnippetXAML2>--> | |
| <Page Name="root" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| > | |
| <Page.Resources> | |
| <!--<SnippetImplicitStyle>--> | |
| <Style TargetType="Button"> | |
| <Setter Property="Background"> | |
| <Setter.Value> | |
| <LinearGradientBrush> | |
| <GradientStop Offset="0.0" Color="AliceBlue"/> | |
| <GradientStop Offset="1.0" Color="Salmon"/> | |
| </LinearGradientBrush> | |
| </Setter.Value> | |
| </Setter> | |
| <Setter Property="FontSize" Value="18"/> | |
| </Style> | |
| <!--</SnippetImplicitStyle>--> | |
| <SolidColorBrush x:Key="MyBrush" Color="Gold"/> | |
| <Style TargetType="Border" x:Key="PageBackground"> | |
| <Setter Property="Background" Value="Blue"/> | |
| </Style> | |
| </Page.Resources> | |
| <StackPanel> | |
| <Border Style="{StaticResource PageBackground}"> | |
| <DockPanel> | |
| <!--<SnippetKeyNameUsage>--> | |
| <Button Background="{StaticResource MyBrush}"/> | |
| <Ellipse Fill="{StaticResource MyBrush}"/> | |
| <!--</SnippetKeyNameUsage>--> | |
| <Button>I am implicitly styled!</Button> | |
| </DockPanel> | |
| </Border> | |
| </StackPanel> | |
| </Page> | |
| <!--</SnippetXAML2>--> |