■ BlockUIContainer 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<FlowDocument> ... <BlockUIContainer> <Polygon Points="144 48, 200 222, 53 114, 235 114, 88 222" Stroke="Blue" StrokeThickness="5"> <Polygon.Fill> <LinearGradientBrush StartPoint="0 0" EndPoint="1 0"> <GradientStopCollection> <GradientStop Offset="0" Color="Red" /> <GradientStop Offset="0.5" Color="Green" /> <GradientStop Offset="1" Color="BLue" /> </GradientStopCollection> </LinearGradientBrush> </Polygon.Fill> </Polygon> </BlockUIContainer> ... </FlowDocument> |
※ BlockUIContainer 엘리먼트는 UIElement 타입 객체를 포함할 수 있다.