Пример #1
0
        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);
        }
Пример #2
0
        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"));
        }
Пример #3
0
 private void ShowSettings()
 {
     CurrentFlyout = _settings;
 }
Пример #4
0
 private void ShowPlugins()
 {
     CurrentFlyout = _plugins;
 }