GradientBrush.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- <Border xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
- <Border.Background>
- <LinearGradientBrush StartPoint="0, 0" EndPoint="1,0">
- <GradientStop Color="Red" Offset="0"/>
- <GradientStop Color="Green" Offset="0.5"/>
- <GradientStop Color="Blue" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <Border VerticalAlignment="Center" HorizontalAlignment="Center" Padding = "80">
- <Border.Background>
- <LinearGradientBrush StartPoint="0, 0" EndPoint="1,1">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="Black" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <Border Padding="10" BorderThickness="1" BorderBrush="#767676">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5, 0">
- <GradientStop Color="{x:Static SystemColors.ControlLightColor}" Offset="0"/>
- <GradientStop Color="{x:Static SystemColors.ControlDarkColor}" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <StackPanel>
- <TextBlock FontWeight="Bold">Title</TextBlock>
- <TextBlock Text="{}{Description"> Text}</TextBlock>
- </StackPanel>
- </Border>
- </Border>
- </Border>