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

728x90
반응형
728x170

TestProject.zip
0.01MB

▶ 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="Path 엘리먼트 : 별점(Star Rating) 아이콘 만들기"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <Grid
        HorizontalAlignment="Center"
        VerticalAlignment="Center">
        <StackPanel Orientation="Horizontal">
            <Canvas
                Width="40"
                Height="40">
                <Path
                    Margin="5 13 0 0"
                    Stroke="#000080"
                    Fill="#ffff00"
                    StrokeThickness="3"
                    StrokeStartLineCap="Round"
                    StrokeEndLineCap="Round"
                    StrokeLineJoin="Round"
                    Data="M 0 0 l 10 0 l 5 -10 l 5 10 l 10 0 l -7 10 l 2 10 l -10 -5 l -10 5 l 2 -10 Z" />
            </Canvas>
            <Canvas
                Width="40"
                Height="40">
                <Path
                    Margin="5 13 0 0"
                    Stroke="#000080"
                    Fill="#ffff00"
                    StrokeThickness="3"
                    StrokeStartLineCap="Round"
                    StrokeEndLineCap="Round"
                    StrokeLineJoin="Round"
                    Data="M 0 0 l 10 0 l 5 -10 l 5 10 l 10 0 l -7 10 l 2 10 l -10 -5 l -10 5 l 2 -10 Z" />
            </Canvas>
            <Canvas
                Width="40"
                Height="40">
                <Path
                    Margin="5 13 0 0"
                    Stroke="#000080"
                    Fill="#ffff00"
                    StrokeThickness="3"
                    StrokeStartLineCap="Round"
                    StrokeEndLineCap="Round"
                    StrokeLineJoin="Round"
                    Data="M 0 0 l 10 0 l 5 -10 l 5 10 l 10 0 l -7 10 l 2 10 l -10 -5 l -10 5 l 2 -10 Z" />
            </Canvas>
            <Canvas
                Width="40"
                Height="40">
                <Path
                    Margin="5 13 0 0"
                    Stroke="#000080"
                    Fill="#ffff00"
                    StrokeThickness="3"
                    StrokeStartLineCap="Round"
                    StrokeEndLineCap="Round"
                    StrokeLineJoin="Round"
                    Data="M 0 0 l 10 0 l 5 -10 l 5 10 l 10 0 l -7 10 l 2 10 l -10 -5 l -10 5 l 2 -10 Z" />
            </Canvas>
            <Canvas
                Width="40"
                Height="40">
                <Path
                    Margin="5 13 0 0"
                    Stroke="#000080"
                    Fill="#ffff00"
                    StrokeThickness="3"
                    StrokeStartLineCap="Round"
                    StrokeEndLineCap="Round"
                    StrokeLineJoin="Round"
                    Data="M 0 0 l 10 0 l 5 -10 l 5 10 l 10 0 l -7 10 l 2 10 l -10 -5 l -10 5 l 2 -10 Z" />
            </Canvas>
        </StackPanel>
    </Grid>
</Window>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요