C#/WPF
XAML 하위 속성 풀어서 지정하기
퓨어레드
2012. 6. 13. 15:07
속성값에 값을 주는것 풀어서 할수 있다.
태그를 엘리먼트명.속성명이다.
Content 가 없는 속성들은 태그를 바로 닫아준다.
<Polygon xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Points="144 48, 200 222, 53 114, 235 114, 88 222"
Stroke="Blue"
StrokeThickness="5">
<Polygon.Fill>
<RadialGradientBrush>
<GradientStop Offset="0" Color="Blue" />
<GradientStop Offset="1" Color="Red" />
</RadialGradientBrush>
</Polygon.Fill>
</Polygon>