■ Path 클래스 : Path 마크업 구문 사용하기

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


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">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <Path

            HorizontalAlignment="Center"

            VerticalAlignment="Center"

            Stroke="Red"

            StrokeThickness="12"

            StrokeLineJoin="Round"

            Data="M 0 0 L 0 100 M 0 50 L 50 50 M 50 0 L 50 100

                  M 125 0 C 60 -10, 60 60, 125 50, 60 40, 60 110, 125 100

                  M 150 0 L 150 100, 200 100

                  M 225 0 L 225 100, 275 100

                  M 300 50 A 25 50 0 1 0 300 49.9" />

    </Grid>

</Page>

 

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

Posted by 사용자 icodebroker