-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml.cs
29 lines (28 loc) · 882 Bytes
/
App.xaml.cs
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
28
29
using DevExpress.Xpf.Core;
using System.Linq;
using System.Windows;
namespace HamburgerSubMenuThemeSelectorBehavior
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application {
public App() {
foreach (Theme theme in Theme.Themes.ToList()) {
switch (theme.Category) {
case Theme.Office2007Category:
theme.ShowInThemeSelector = false;
break;
case Theme.MetropolisCategory:
theme.ShowInThemeSelector = false;
break;
default:
break;
}
if (theme.Name == "DeepBlue") {
theme.ShowInThemeSelector = false;
}
}
}
}
}