첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
유용한 소스 코드가 있으면 icodebroker@naver.com으로 보내주시면 감사합니다.
블로그 자료는 자유롭게 사용하세요.

■ ArcSegment 엘리먼트 : IsLargeArc/SweepDirection 속성 사용하기

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


TestProject.zip


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="ArcSegment 엘리먼트 : IsLargeArc/SweepDirection 속성 사용하기"

    FontFamily="나눔고딕코딩"

    FontSize="16">

    <Canvas>

        <!-- 반시계 방향(기본값), 작은 아크(기본값) -->

        <Path

            Stroke="Red"

            StrokeThickness="10">

            <Path.Data>

                <PathGeometry>

                    <PathFigure StartPoint="144 144">

                        <ArcSegment

                            Point="240 240"

                            Size="96 96" />

                    </PathFigure>

                </PathGeometry>

            </Path.Data>

        </Path>

        <!-- 반시계 방향(기본값), IsLargeArc -->

        <Path

            Stroke="Blue"

            StrokeThickness="10">

            <Path.Data>

                <PathGeometry>

                    <PathFigure StartPoint="144 144">

                        <ArcSegment

                            Point="240 240"

                            Size="96 96"

                            IsLargeArc="True" />

                    </PathFigure>

                </PathGeometry>

            </Path.Data>

        </Path>

        <!-- 시계 방향, 작은 아크(기본값) -->

        <Path

            Stroke="Green"

            StrokeThickness="10">

            <Path.Data>

                <PathGeometry>

                    <PathFigure StartPoint="144 144">

                        <ArcSegment

                            Point="240 240"

                            Size="96 96"

                            SweepDirection="ClockWise" />

                    </PathFigure>

                </PathGeometry>

            </Path.Data>

        </Path>

        <!-- 시계 방향, IsLargeArc -->

        <Path

            Stroke="Purple"

            StrokeThickness="10">

            <Path.Data>

                <PathGeometry>

                    <PathFigure StartPoint="144 144">

                        <ArcSegment

                            Point="240 240"

                            Size="96 96"

                            SweepDirection="ClockWise"

                            IsLargeArc="True" />

                    </PathFigure>

                </PathGeometry>

            </Path.Data>

        </Path>

    </Canvas>

</Window>

 

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

Posted by 사용자 icodebroker

댓글을 달아 주세요