GradientBrush.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. <Border xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  2. <Border.Background>
  3. <LinearGradientBrush StartPoint="0, 0" EndPoint="1,0">
  4. <GradientStop Color="Red" Offset="0"/>
  5. <GradientStop Color="Green" Offset="0.5"/>
  6. <GradientStop Color="Blue" Offset="1"/>
  7. </LinearGradientBrush>
  8. </Border.Background>
  9. <Border VerticalAlignment="Center" HorizontalAlignment="Center" Padding = "80">
  10. <Border.Background>
  11. <LinearGradientBrush StartPoint="0, 0" EndPoint="1,1">
  12. <GradientStop Color="White" Offset="0"/>
  13. <GradientStop Color="Black" Offset="1"/>
  14. </LinearGradientBrush>
  15. </Border.Background>
  16. <Border Padding="10" BorderThickness="1" BorderBrush="#767676">
  17. <Border.Background>
  18. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5, 0">
  19. <GradientStop Color="{x:Static SystemColors.ControlLightColor}" Offset="0"/>
  20. <GradientStop Color="{x:Static SystemColors.ControlDarkColor}" Offset="1"/>
  21. </LinearGradientBrush>
  22. </Border.Background>
  23. <StackPanel>
  24. <TextBlock FontWeight="Bold">Title</TextBlock>
  25. <TextBlock Text="{}{Description"> Text}</TextBlock>
  26. </StackPanel>
  27. </Border>
  28. </Border>
  29. </Border>