<LinearGradientBrush /> - 두 점 사이에 선분을 만들어 그라데이션 효과 부여
.NET프로그래밍/Silverlight 3.0 2009. 11. 27. 09:04 |
[FrmLinearGradientBrush.xaml]
<UserControl x:Class="RiaBrush.FrmLinearGradientBrush"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<TextBlock FontFamily="malgun gothic"
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>
</Grid>
</UserControl>
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
<ImageBrush /> - 배경에 이미지 표시 (0) | 2009.11.27 |
---|---|
<RadialGradientBrush /> - 원 모양의 그라데이션 효과 (0) | 2009.11.27 |
Brush(브러시 - Shape 내부 채우기) - <SolidColorBrush /> : 단색을 채워주는 역할을 한다. (0) | 2009.11.27 |
Stroke 관련 속성2 (0) | 2009.11.27 |
Geometry의 줄임 표현 (경로 태그 구문/경로 미니 언어) (0) | 2009.11.26 |