//private static LowLevelKeyboardListener keyboardListener; // temporarily removed due to stuck key issue, commented out to prevent warnings public MenuBar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService applicationUpdateService, ISettingsUIService settingsUiService, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 23) { _appGrabber = appGrabber; _applicationUpdateService = applicationUpdateService; _settingsUiService = settingsUiService; object menuBarWindowAllowsTransparencyResource = CairoApplication.Current.Resources["MenuBarWindowAllowsTransparency"]; if (menuBarWindowAllowsTransparencyResource is bool resourceValue) { AllowsTransparency = resourceValue; } InitializeComponent(); RequiresScreenEdge = true; SetPosition(); setupChildren(); setupMenu(); setupCairoMenu(); setupPlacesMenu(); Settings.Instance.PropertyChanged += Settings_PropertyChanged; }
public MenuBarWindowService(ICairoApplication cairoApplication, ShellManagerService shellManagerService, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService updateService, ISettingsUIService settingsUiService) : base(cairoApplication, shellManagerService, windowManager) { _appGrabber = appGrabber; _settingsUiService = settingsUiService; _updateService = updateService; EnableMultiMon = Settings.Instance.EnableMenuBarMultiMon; EnableService = Settings.Instance.EnableMenuBar; }
//private static LowLevelKeyboardListener keyboardListener; // temporarily removed due to stuck key issue, commented out to prevent warnings public MenuBar(ICairoApplication cairoApplication, ShellManager shellManager, WindowManager windowManager, AppGrabberService appGrabber, IApplicationUpdateService applicationUpdateService, ISettingsUIService settingsUiService, AppBarScreen screen, AppBarEdge edge) : base(cairoApplication, shellManager, windowManager, screen, edge, 23) { _appGrabber = appGrabber; _applicationUpdateService = applicationUpdateService; _settingsUiService = settingsUiService; InitializeComponent(); RequiresScreenEdge = true; SetPosition(); setupChildren(); setupMenu(); setupCairoMenu(); setupPlacesMenu(); Settings.Instance.PropertyChanged += Settings_PropertyChanged; }
public Desktop(IDesktopManager desktopManager, AppBarManager appBarManager, FullScreenHelper fullScreenHelper, ISettingsUIService settingsUiService) { InitializeComponent(); _appBarManager = appBarManager; _desktopManager = desktopManager; _fullScreenHelper = fullScreenHelper; _fileWorker = new FileOperationWorker(); _settingsUiService = settingsUiService; if (_desktopManager.ShellWindow != null) { AllowsTransparency = false; } setSize(); setGridPosition(); setBackground(); Settings.Instance.PropertyChanged += Settings_PropertyChanged; _fullScreenHelper.FullScreenApps.CollectionChanged += FullScreenApps_CollectionChanged; }