첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

■ DropShadowEffect 엘리먼트를 사용해 네온싸인 효과를 만드는 방법을 보여준다.

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="TestProject"
    Background="#2a2a2a"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <Canvas
        Width="280"
        Height="120">
        <Polyline
            StrokeThickness="2"
            Stroke="#bb0000"
            Fill="#ff0000"
            Points="10 110 60 10 110 110 105 110 60 18 15 110 10 110">
            <Polyline.Effect>
                <DropShadowEffect
                    Direction="0"
                    ShadowDepth="0"
                    BlurRadius="25"
                    Color="#ff9999" />
            </Polyline.Effect>
        </Polyline>
        <Polyline Canvas.Left="150"
            Points="10 105 110 105 110 10 115 10 115 110 10 110 10 105"
            StrokeThickness="2"
            Stroke="#00BB00"
            Fill="#00ff00">
            <Polyline.Effect>
                <DropShadowEffect
                    Direction="0"
                    ShadowDepth="0"
                    BlurRadius="25"
                    Color="#99ff99" />
            </Polyline.Effect>
        </Polyline>
    </Canvas>
</Window>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요