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(); } }
private void FindReplaceButton_Click(object sender, RoutedEventArgs e) { FindReplacePage FRP = new FindReplacePage(this.textEditor); FRP.ShowAsWindow(); }