(C#)WPF:LinearGradientBrush 线性渐变画刷和RadialGradientBrush 圆形渐变画刷

 

 

 

 1 "WpfApp1.MainWindow"
 2         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 5         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 6         xmlns:local="clr-namespace:WpfApp1"
 7         mc:Ignorable="d"
 8         Title="MainWindow" Height="360" Width="360">
 9     "Center" HorizontalAlignment="Center">
10         "120" Height="120">
11             
12                 "0.25,0.25" RadiusX="0.75" RadiusY="0.75">
13                     
14                         "White" Offset="0" />
15                         "Black" Offset="0.65" />
16                         "Gray" Offset="0.8" />
17                      
18                 
19             
20         
21     
22 

效果图:

               (C#)WPF:LinearGradientBrush 线性渐变画刷和RadialGradientBrush 圆形渐变画刷_第1张图片        

 

你可能感兴趣的:((C#)WPF:LinearGradientBrush 线性渐变画刷和RadialGradientBrush 圆形渐变画刷)