ThemableWindow.cs 945 B

12345678910111213141516171819202122232425262728293031323334
  1. using Syncfusion.Windows.Shared;
  2. using System.Windows;
  3. using InABox.WPF.Themes;
  4. namespace InABox.Wpf
  5. {
  6. /// <summary>
  7. /// Provides a window which understands the theming system and applies it automatically.
  8. /// </summary>
  9. /// <remarks>
  10. /// We should use this guy for all our windows.
  11. /// </remarks>
  12. public class ThemableWindow : Window
  13. {
  14. public ThemableWindow() : base()
  15. {
  16. Background = ThemeManager.WorkspaceBackgroundBrush;
  17. }
  18. }
  19. /// <summary>
  20. /// Provides a window which understands the theming system and applies it automatically.
  21. /// </summary>
  22. /// <remarks>
  23. /// We should use this guy for all our chromeless windows.
  24. /// </remarks>
  25. public class ThemableChromelessWindow : ChromelessWindow
  26. {
  27. public ThemableChromelessWindow() : base()
  28. {
  29. Background = ThemeManager.WorkspaceBackgroundBrush;
  30. }
  31. }
  32. }