728x90
반응형
728x170
▶ 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="DropShadowEffect 엘리먼트 사용하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<Border
Margin="10"
CornerRadius="5"
BorderThickness="1"
BorderBrush="DarkGray"
Background="{x:Static SystemColors.ControlLightLightBrush}">
<Border.Effect>
<DropShadowEffect Color="DarkGray" />
</Border.Effect>
<StackPanel Margin="5">
<Label Content="Rounded corners are everywhere" />
<Button
HorizontalAlignment="Center"
Margin="5"
Padding="30 5"
Content="Push me" />
</StackPanel>
</Border>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] AnimationTimeline 클래스 : 커스텀 브러시 애니메이션 사용하기 (0) | 2021.02.26 |
---|---|
[C#/WPF] UI 자동화 사용하기 (0) | 2021.02.25 |
[C#/WPF] TextBox 엘리먼트 : Text 속성 변경시 애니메이션 사용하기 (0) | 2021.02.25 |
[C#/WPF] Storyboard 엘리먼트 : 행진하는 개미, 펄스, 뒤집기, 탄성 줄, 나이트 라이더 애니메이션 사용하기 (0) | 2021.02.25 |
[C#/WPF] VisualStateManager 엘리먼트 : 커스텀 CheckBox 엘리먼트 정의하기 (0) | 2021.02.22 |
[C#/WPF] DropShadowEffect 엘리먼트 사용하기 (0) | 2021.02.21 |
[C#/WPF] RichTextBox 클래스 : RTF 파일 로드하기 (0) | 2021.02.21 |
[C#/WPF] FocusManager 클래스 : SetFocusedElement 정적 메소드를 사용해 논리적 포커스 설정하기 (0) | 2021.02.21 |
[C#/WPF] Keyboard 클래스 : Focus 정적 메소드를 사용해 포커스 설정하기 (0) | 2021.02.21 |
[C#/WPF] Typography 엘리먼트 : Capitals 첨부 속성 사용하기 (0) | 2021.02.21 |
[C#/WPF] FlowDocument 엘리먼트 : RichTextBox 내에서 사용하기 (0) | 2021.02.21 |
댓글을 달아 주세요