728x90
반응형
728x170
■ DropShadowEffect 엘리먼트를 사용해 네온싸인 효과를 만드는 방법을 보여준다.
▶ 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
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF/.NET6] WebView2 엘리먼트 : WebView2 미설치시 자동 설치하기 (0) | 2022.09.30 |
---|---|
[C#/WPF] Canvas 클래스 : 캔버스 확장 사용하기 (0) | 2022.08.25 |
[C#/WPF/.NET6] BitmapImage 클래스 : WINFORM Bitmap 객체에서 비트맵 이미지 구하기 (0) | 2022.08.20 |
[C#/WPF/.NET6] Image 클래스 : 움직이는 GIF 이미지 만들기 (0) | 2022.08.20 |
[C#/WPF] BlurEffect 엘리먼트 : 네온싸인 효과 만들기 (0) | 2022.07.23 |
[C#/WPF] DropShadowEffect 엘리먼트 : 네온싸인 효과 만들기 (0) | 2022.07.23 |
[C#/WPF] ControlTemplate 엘리먼트 : ToggleButton 엘리먼트를 정의해 전원 버튼 만들기 (0) | 2022.07.23 |
[C#/WPF] ControlTemplate 엘리먼트 : ToggleButton 엘리먼트를 정의해 재생 버튼 만들기 (0) | 2022.07.23 |
[C#/WPF] ListBox 엘리먼트 : IsSynchronizedWithCurrentItem 속성을 사용해 현재 항목 동기화 설정하기 (0) | 2022.05.28 |
[C#/WPF] DateTemplate 클래스 : FindName 메소드를 사용해 자식 객체 구하기 (0) | 2022.05.28 |
댓글을 달아 주세요