첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.

728x90
반응형
728x170

TestProject.zip
0.04MB

▶ 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
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요