public Attach ( |
||
textArea | ||
return | void |
/// <summary> /// Creates a new SearchInputHandler and registers the search-related commands. /// </summary> public SearchInputHandler(TextArea textArea) : base(textArea) { RegisterCommands(this.CommandBindings); panel = new SearchPanel(); panel.Attach(TextArea); }
/// <summary> /// Creates a new SearchInputHandler and registers the search-related commands. /// </summary> public SearchInputHandler(TextArea textArea) : base(textArea) { RegisterCommands(this.CommandBindings); panel = new SearchPanel(); panel.Attach(TextArea); }
void ExecuteFind(object sender, ExecutedRoutedEventArgs e) { if (panel == null || panel.IsClosed) { panel = new SearchPanel(); panel.Attach(TextArea); } Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, (Action)delegate { panel.Reactivate(); }); }
void ExecuteFind(object sender, ExecutedRoutedEventArgs e) { if (panel == null || panel.IsClosed) { panel = new SearchPanel(); panel.Attach(TextArea); } panel.SearchPattern = TextArea.Selection.GetText(); Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, (Action) delegate { panel.Reactivate(); }); }
private void SearchButton_Click(object sender, RoutedEventArgs e) { SearchPanel sPanel = new SearchPanel(); sPanel.Attach(SqlTextBox.TextArea); }
private void SearchHandler(object sender, ExecutedRoutedEventArgs e) { var sp = new SearchPanel(); sp.Attach(textEditor.TextArea); sp.Dispatcher.BeginInvoke(DispatcherPriority.Input, (Action)sp.Reactivate); }