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="FixedDocument 엘리먼트 사용하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<DocumentViewer>
<FixedDocument>
<PageContent>
<FixedPage
Width="750"
Height="450">
<StackPanel FixedPage.Left="20" FixedPage.Top="20"
Orientation="Vertical">
<Label
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="18"
FontWeight="Bold"
Content="Jane Eyre" />
<Label
VerticalAlignment="Center"
FontFamily="Arial"
FontStyle="Italic"
FontSize="14"
Content="Charlotte Brontë" />
</StackPanel>
</FixedPage>
</PageContent>
<PageContent>
<FixedPage Width="750" Height="450">
<StackPanel Margin="20">
<TextBlock
FontFamily="Cambria"
FontStyle="Italic"
FontSize="16"
TextWrapping="Wrap">
There was no possibility etc.
</TextBlock>
<TextBlock
Margin="0 10 0 0"
FontFamily="Cambria"
FontStyle="Italic"
FontSize="16"
TextWrapping="Wrap">
I was glad of it etc.
</TextBlock>
<Image
Margin="0 20 0 0"
Width="500"
Stretch="Uniform"
Source="IMAGE/sample.jpg" />
</StackPanel>
</FixedPage>
</PageContent>
</FixedDocument>
</DocumentViewer>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] RichTextBox 클래스 : RTF 파일 로드하기 (0) | 2021.02.21 |
---|---|
[C#/WPF] FocusManager 클래스 : SetFocusedElement 정적 메소드를 사용해 논리적 포커스 설정하기 (0) | 2021.02.21 |
[C#/WPF] Keyboard 클래스 : Focus 정적 메소드를 사용해 포커스 설정하기 (0) | 2021.02.21 |
[C#/WPF] Typography 엘리먼트 : Capitals 첨부 속성 사용하기 (0) | 2021.02.21 |
[C#/WPF] FlowDocument 엘리먼트 : RichTextBox 내에서 사용하기 (0) | 2021.02.21 |
[C#/WPF] FixedDocument 엘리먼트 사용하기 (0) | 2021.02.21 |
[C#/WPF] Floater 엘리먼트 : FlowDocument에서 이미지 주변에 텍스트 표시하기 (0) | 2021.02.21 |
[C#/WPF] BlockUIContainer 엘리먼트 사용하기 (0) | 2021.02.21 |
[C#/WPF] Section 엘리먼트 사용하기 (0) | 2021.02.21 |
[C#/WPF] Table 엘리먼트 사용하기 (0) | 2021.02.21 |
[C#/WPF] List 엘리먼트 사용하기 (0) | 2021.02.21 |
댓글을 달아 주세요