Reactivate() public method

Reactivates the SearchPanel by setting the focus on the search box and selecting all text.
public Reactivate ( ) : void
return void
Exemplo n.º 1
0
 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(); });
 }
Exemplo n.º 2
0
 void ExecuteFind(object sender, ExecutedRoutedEventArgs e)
 {
     panel.Open();
     if (!(TextArea.Selection.IsEmpty || TextArea.Selection.IsMultiline))
     {
         panel.SearchPattern = TextArea.Selection.GetText();
     }
     Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, (Action) delegate { panel.Reactivate(); });
 }
Exemplo n.º 3
0
 public void Open()
 {
     panel.Open();
     panel.SearchPattern = TextArea.Selection.GetText();
     Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, (Action) delegate { panel.Reactivate(); });
 }