Пример #1
0
        private void TextEditor_Unloaded(object sender, RoutedEventArgs e)
        {
            if (!(sender is TextEditor textEditor))
            {
                return;
            }

            textEditor.TextChanging     -= TextEditor_TextChanging;
            textEditor.SelectionChanged -= TextEditor_SelectionChanged;

            if (Sets.Items?.Count == 0)
            {
                Application.Current.Exit();
            }

            if (SearchBarPlaceHolder.Visibility == Visibility.Visible)
            {
                SearchBarPlaceHolder.Dismiss();
            }
        }
Пример #2
0
 private void FindAndReplaceControl_OnDismissKeyDown(object sender, RoutedEventArgs e)
 {
     SearchBarPlaceHolder.Dismiss();
     FocusOnSelectedTextEditor();
 }