This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathThemeControl.xaml
More file actions
27 lines (26 loc) · 1.48 KB
/
Copy pathThemeControl.xaml
File metadata and controls
27 lines (26 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<UserControl x:Class="ThemedDialog.UI.ThemeControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<StaticResource ResourceKey="{x:Static vsfx:VsResourceKeys.ThemedDialogDefaultStylesKey}" />
</ResourceDictionary.MergedDictionaries>
<ResourceDictionary x:Key="Themes/Dark" Source="Themes/Dark/Theme.xaml" />
<ResourceDictionary x:Key="Themes/Light" Source="Themes/Light/Theme.xaml" />
<ResourceDictionary x:Key="Themes/Blue" Source="Themes/Blue/Theme.xaml" />
<ResourceDictionary x:Key="Themes/HighContrast" Source="Themes/HighContrast/Theme.xaml" />
</ResourceDictionary>
</UserControl.Resources>
<ListBox x:Name="ThemeListBox" DockPanel.Dock="Top" SelectionChanged="ThemeListBox_SelectionChanged">
<Label>Light</Label>
<Label>Blue</Label>
<Label>Dark</Label>
<Label>HighContrast</Label>
</ListBox>
</UserControl>