Attach() public method

Attaches this SearchPanel to a TextArea instance.
public Attach ( TextArea textArea ) : void
textArea ICSharpCode.AvalonEdit.Editing.TextArea
return void
Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
		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(); });
		}
Exemplo n.º 4
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(); });
 }
 private void SearchButton_Click(object sender, RoutedEventArgs e)
 {
     SearchPanel sPanel = new SearchPanel();
     sPanel.Attach(SqlTextBox.TextArea);
 }
Exemplo n.º 6
0
 private void SearchHandler(object sender, ExecutedRoutedEventArgs e)
 {
     var sp = new SearchPanel();
     sp.Attach(textEditor.TextArea);
     sp.Dispatcher.BeginInvoke(DispatcherPriority.Input, (Action)sp.Reactivate);
 }