示例#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"));
        }
 private void ShowSettings()
 {
     CurrentFlyout = _settings;
 }
 private void ShowPlugins()
 {
     CurrentFlyout = _plugins;
 }