728x90
반응형
728x170
▶ MainApplication.xaml
<Application x:Class="TestProject.MainApplication"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<!--ResourceDictionary Source="/PresentationFramework.Classic, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/classic.xaml" /-->
<!--ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" /-->
<!--ResourceDictionary Source="/PresentationFramework.Luna, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/luna.metallic.xaml" /-->
<!--ResourceDictionary Source="/PresentationFramework.Luna, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/luna.homestead.xaml" /-->
<ResourceDictionary Source="/PresentationFramework.Royale, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/royale.normalcolor.xaml" />
</Application.Resources>
</Application>
728x90
▶ 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="ResourceDictionary 엘리먼트 : Source 속성을 사용해 특정 윈도우즈 테마 설정하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Button
Width="100"
Height="30"
Content="Test" />
<StackPanel
HorizontalAlignment="Center"
Margin="0 10 0 0"
Orientation="Horizontal">
<RadioButton Content="예" />
<RadioButton
Margin="10 0 0 0"
Content="아니오" />
</StackPanel>
<ListBox
Margin="0 10 0 0"
Width="200"
Height="100">
<TextBlock>서울</TextBlock>
<TextBlock>인천</TextBlock>
<TextBlock>수원</TextBlock>
<TextBlock>대전</TextBlock>
<TextBlock>대구</TextBlock>
<TextBlock>울산</TextBlock>
<TextBlock>광주</TextBlock>
<TextBlock>부산</TextBlock>
</ListBox>
</StackPanel>
</Grid>
</Window>
※ PresentationFramework.Aero 어셈블리를 참조한다.
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] Binding 태그 확장 : NotifyOnTargetUpdated 속성을 사용해 바인딩 데이터 변경시 애니메이션 시작하기 (0) | 2021.02.07 |
---|---|
[C#/WPF] Timeline 엘리먼트 : DesiredFrameRate 첨부 속성을 사용해 애니메이션 프레임 속도 설정하기 (0) | 2021.02.07 |
[C#/WPF] Timeline 클래스 : DesiredFrameRateProperty 의존 속성을 사용해 애니메이션 프레임 속도 설정하기 (0) | 2021.02.07 |
[C#/WPF] 모니터 정보 구하기 (0) | 2021.02.07 |
[C#/WPF] 다국어 사용하기 (0) | 2021.02.06 |
[C#/WPF] ResourceDictionary 엘리먼트 : Source 속성을 사용해 특정 윈도우즈 테마 설정하기 (0) | 2021.02.06 |
[C#/WPF] FrameworkElement 클래스 : SetResourceReference 메소드를 사용해 동적 리소스(Dynamic Resource) 설정하기 (0) | 2021.02.06 |
[C#/WPF] ResourceDictionary 클래스 : 리소스에서 리소스 딕셔너리 구하기 (0) | 2021.02.06 |
[C#/WPF] Application 클래스 : GetResourceStream 정적 메소드를 사용해 리소스 스트림 구하기 (0) | 2021.02.06 |
[C#/WPF] TransformedBitmap 클래스 : 이미지 수평/수직 뒤집기 (0) | 2021.02.06 |
[C#/WPF] BitmapSource 클래스 : 이미지 자동으로 잘라내기 (0) | 2021.02.06 |
댓글을 달아 주세요