示例#1
0
 private void UCTextEditor_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F && (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)))
     {
         e.Handled = true;
         FindReplacePage FRP = new FindReplacePage(this.textEditor);
         FRP.ShowAsWindow();
     }
 }
示例#2
0
        private void FindReplaceButton_Click(object sender, RoutedEventArgs e)
        {
            FindReplacePage FRP = new FindReplacePage(this.textEditor);

            FRP.ShowAsWindow();
        }