728x90
반응형
728x170
▶ MainWindow.xaml
<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:o="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
Width="800"
Height="600"
Title="o:Freeze 속성 : Freezable 엘리먼트의 IsFrozen 속성 상태를 true로 설정하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<Ellipse
Width="300"
Height="300"
Stroke="Black"
StrokeThickness="2">
<Ellipse.Fill>
<DrawingBrush
o:Freeze="True"
Viewport="0 0 10 10"
ViewportUnits="Absolute"
TileMode="Tile">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="White">
<GeometryDrawing.Geometry>
<RectangleGeometry Rect="0 0 100 100" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing Brush="LightGray">
<GeometryDrawing.Geometry>
<GeometryGroup>
<RectangleGeometry Rect="0 0 50 50" />
<RectangleGeometry Rect="50 50 50 50" />
</GeometryGroup>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Ellipse.Fill>
</Ellipse>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] TransformedBitmap 클래스 사용하기 (0) | 2020.08.05 |
---|---|
[C#/WPF] BmpBitmapDecoder 클래스 : BMP 이미지 파일 로드하기 (Uri 사용) (0) | 2020.08.05 |
[C#/WPF] BmpBitmapDecoder 클래스 : BMP 이미지 파일 로드하기 (FileStrem 사용) (0) | 2020.08.05 |
[C#/WPF] DoubleAnimation 엘리먼트 : EasingFunction 속성에서 BackEase 객체 사용하기 (0) | 2020.08.05 |
[C#/WPF] ScrollBar 엘리먼트 : 색상 스크롤하기 (0) | 2020.08.04 |
[C#/WPF] GridSplitter 엘리먼트 사용하기 (0) | 2020.08.04 |
[C#/WPF] Grid 엘리먼트 : ShowGridLines 속성 사용하기 (0) | 2020.08.04 |
[C#/WPF] 도형 위치/크기 변경하기 (0) | 2020.08.04 |
[C#/WPF] 도형 위치/크기 변경하기 (Polygon 제외) (0) | 2020.08.04 |
[C#/WPF] DockPanel 클래스 : LastChildFill 속성 사용하기 (0) | 2020.08.04 |
댓글을 달아 주세요