728x90
반응형
728x170
■ Section 엘리먼트를 사용하는 기본적인 방법을 보여준다.
▶ 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">
<FlowDocumentReader>
<FlowDocument>
<Section Background="Red">
<Paragraph>
Paragraph 1
</Paragraph>
<Paragraph>
Paragraph 2
</Paragraph>
<Paragraph>
Paragraph 3
</Paragraph>
</Section>
</FlowDocument>
</FlowDocumentReader>
</Window>
※ Section 엘리먼트는 HTML의 div와 유사하다.
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] Run 엘리먼트 사용하기 (0) | 2022.12.05 |
---|---|
[C#/WPF] List 클래스 사용하기 (0) | 2022.12.05 |
[C#/WPF] List 엘리먼트 사용하기 (0) | 2022.12.05 |
[C#/WPF] BlockUIContainer 엘리먼트 사용하기 (0) | 2022.12.05 |
[C#/WPF] Section 클래스 사용하기 (0) | 2022.12.05 |
[C#/WPF] Paragraph 클래스 사용하기 (0) | 2022.12.05 |
[C#/WPF] Paragraph 엘리먼트 사용하기 (0) | 2022.12.05 |
[C#/WPF] FlowDocumentReader 클래스 사용하기 (0) | 2022.12.05 |
[C#/WPF] FlowDocumentReader 엘리먼트 사용하기 (0) | 2022.12.05 |
[C#/WPF] DynamicResource 태그 확장 : SystemParameters 클래스 정적 속성을 사용해 시스템 정보 설정하기 (0) | 2022.12.04 |
댓글을 달아 주세요