■ 별(star) 그리기

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

 

<UserControl

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

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

    Background="Transparent">

    <UserControl.LayoutTransform>

        <RotateTransform Angle="0" />

    </UserControl.LayoutTransform>

    <Canvas

        Width="202"

        Height="194">

        <Polygon

            Stroke="Blue"

            StrokeThickness="5"

            Fill="Red"

            Canvas.Left="10"

            Canvas.Top="10"

            Points="91 0, 147 174, 0 66, 182 66, 35 174" />

    </Canvas>

</UserControl>

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

Posted by 사용자 icodebroker

댓글을 달아 주세요