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"
Width="800"
Height="600"
Title="TestProject"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="10"
Background="#33cccccc"
TextWrapping="Wrap"
xml:space="preserve">
<![CDATA[<GeometryGroup FillRule="EvenOdd">
<LineGeometry
StartPoint="10 10"
EndPoint="50 30" />
<EllipseGeometry
Center="40 70"
RadiusX="30"
RadiusY="30" />
<RectangleGeometry Rect="30 55 100 30" />
</GeometryGroup>]]>
</TextBlock>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] TextBox 클래스 : Copy/Cut/Paste 메소드를 사용해 텍스트 복사하기/잘라내기/붙여넣기 (0) | 2020.08.27 |
---|---|
[C#/WPF] TextBox 클래스 : Select 메소드를 사용해 커서를 맨 뒤로 이동시키기 (0) | 2020.08.27 |
[C#/WPF] TextBox 클래스 : Select 메소드를 사용해 커서를 맨 앞으로 이동시키기 (0) | 2020.08.27 |
[C#/WPF] FormattedText 클래스 : SetForegroundBrush/SetFontWeight/SetFontStyle/SetFontSize 메소드 사용하기 (0) | 2020.08.27 |
[C#/WPF] 지오메트리 디자이너 사용하기 (0) | 2020.08.27 |
[C#/WPF] XmlDataProvider 엘리먼트 : x:XData 엘리먼트를 사용해 XML 데이터 내장하기 (0) | 2020.08.26 |
[C#/WPF] ItemsPanelTemplate 엘리먼트 : ListBox 엘리먼트의 ItemPanel 속성에 커스텀 패널 설정하기 (0) | 2020.08.26 |
[C#/WPF] DataTemplate 엘리먼트 : ListBox 엘리먼트의 ItemTemplate 속성 설정하기 (0) | 2020.08.26 |
[C#/WPF] DataTemplate 엘리먼트 : Button 엘리먼트의 ContentTemplate 속성 설정하기 (0) | 2020.08.26 |
[C#/WPF] ControlTemplate 엘리먼트 : CheckBox 엘리먼트 정의하기 (0) | 2020.08.26 |
댓글을 달아 주세요