public FlyoutWindow(IFlyoutViewModel viewModel) { _viewModel = viewModel; DataContext = _viewModel; InitializeComponent(); _viewModel.StateChanged += OnStateChanged; _viewModel.WindowSizeInvalidated += OnWindowsSizeInvalidated; SourceInitialized += (_, __) => this.Cloak(); Themes.Manager.Current.ThemeChanged += () => EnableAcrylicIfApplicable(WindowsTaskbar.Current); }
public FlyoutWindow(IFlyoutViewModel viewModel) { _viewModel = viewModel; DataContext = _viewModel; InitializeComponent(); _viewModel.StateChanged += OnStateChanged; _viewModel.WindowSizeInvalidated += OnWindowsSizeInvalidated; SourceInitialized += (_, __) => this.Cloak(); Themes.Manager.Current.ThemeChanged += () => EnableAcrylicIfApplicable(WindowsTaskbar.Current); LayoutRoot.Background = new SolidColorBrush(Themes.Manager.Current.ResolveRef(this, "AcrylicColor_Flyout")); }
private void ShowSettings() { CurrentFlyout = _settings; }
private void ShowPlugins() { CurrentFlyout = _plugins; }