private void StartMenuPage_OnPreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsDown && e.Key == Key.Escape)
     {
         ApplicationEvents.OnStartMenuRequested();
     }
 }
Пример #2
0
 private void ApplicationEvents_MenuItemSelected(MenuItem item, object parameter)
 {
     if (!IsStartMenuPoppedUp())
     {
         return;
     }
     ApplicationEvents.OnStartMenuRequested();
 }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
 private static void StartButton_Click(object sender, RoutedEventArgs e)
 {
     ApplicationEvents.OnStartMenuRequested();
 }
Пример #6
0
 private void MainView_OnLoaded(object sender, RoutedEventArgs e)
 {
     ApplicationEvents.OnMenuItemSelected(applicationService.GetWorkbenchMenuItem());
 }
Пример #7
0
 private void Close_OnClick(object sender, RoutedEventArgs e)
 {
     ApplicationEvents.OnCloseActivePageRequested();
 }
Пример #8
0
 private void SearchButton_Click(object sender, RoutedEventArgs e)
 {
     ApplicationEvents.OnSearchBoxRequested();
 }