■ TextBlock 클래스 사용하기

------------------------------------------------------------------------------------------------------------------------


TestProject.zip


MainPage.xaml

 

 

<Page x:Class="TestProject.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    FontFamily="나눔고딕코딩"

    FontSize="16">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <TextBlock Width="600"

            HorizontalAlignment="Center"

            VerticalAlignment="Center"

            FontSize="24"

            TextWrapping="Wrap">

                Here is text in a <Run FontFamily="Times New Roman">Times New Roman</Run> font,

                as well as text in a  <Run FontSize="36">36-pixel</Run> height.

                <LineBreak /><LineBreak />Here is some <Bold>bold</Bold> and here is some

                <Italic>italic</Italic> and here is some

                <Underline>underline</Underline> and here is some

                <Bold>

                    <Italic>

                        <Underline>bold italic underline and

                            <Span FontSize="36">bigger and <Span Foreground="Red">Red</Span> as well</Span>

                        </Underline>

                    </Italic>

                </Bold>.

        </TextBlock>

    </Grid>

</Page>

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요