- 선형 그라에이션
MainPage.xaml |
[그림 30-1]
<Grid x:Name="LayoutRoot" Background="White"> <Rectangle Width="100" Height="100"> <Rectangle.Fill> <LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> <GradientStop Color="Red" Offset="0.0"></GradientStop> <GradientStop Color="Yellow" Offset="0.35"></GradientStop> <GradientStop Color="Blue" Offset="0.75"></GradientStop> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> </Grid> |
응용예제
FrmLinearGradientBrush.xaml |
[그림 30-2] <TextBlock FontFamily="Arial Black" FontSize="50" Text="준철이 블로그"> <TextBlock.Foreground> <LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> <GradientStop Offset="0" Color="Blue"></GradientStop> <GradientStop Offset="0.5" Color="Green"></GradientStop> <GradientStop Offset="1" Color="Red"></GradientStop> </LinearGradientBrush> </TextBlock.Foreground> </TextBlock> |
'Silverlight' 카테고리의 다른 글
32.SilverLight3 - Brush : SolidColorBrush (0) | 2009.11.27 |
---|---|
31.SilverLight3 - Brush : RadialGradientBrush (0) | 2009.11.27 |
29.SilverLight3 - Geometry : PathData ( 미니언어 ) (0) | 2009.11.26 |
28.SilverLight3 - Geometry : GrometryGroup (0) | 2009.11.26 |
27.SilverLight3 - Geometry : BezierSegment (0) | 2009.11.26 |
Comments