private void StartMenuPage_OnPreviewKeyDown(object sender, KeyEventArgs e) { if (e.IsDown && e.Key == Key.Escape) { ApplicationEvents.OnStartMenuRequested(); } }
private void ApplicationEvents_MenuItemSelected(MenuItem item, object parameter) { if (!IsStartMenuPoppedUp()) { return; } ApplicationEvents.OnStartMenuRequested(); }
private void ItemBox_OnKeyDown(object sender, KeyEventArgs e) { if (e.Key != Key.Return) { return; } var menuItem = ItemBox.SelectedItem as MenuItem; if (menuItem == null) { return; } ApplicationEvents.OnMenuItemSelected(menuItem); }
private void MenuItem_OnPreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (e.ClickCount != 2) { return; } var menuItem = (sender as Grid)?.DataContext as MenuItem; if (menuItem == null) { return; } ApplicationEvents.OnMenuItemSelected(menuItem); }
private static void StartButton_Click(object sender, RoutedEventArgs e) { ApplicationEvents.OnStartMenuRequested(); }
private void MainView_OnLoaded(object sender, RoutedEventArgs e) { ApplicationEvents.OnMenuItemSelected(applicationService.GetWorkbenchMenuItem()); }
private void Close_OnClick(object sender, RoutedEventArgs e) { ApplicationEvents.OnCloseActivePageRequested(); }
private void SearchButton_Click(object sender, RoutedEventArgs e) { ApplicationEvents.OnSearchBoxRequested(); }