Attach() public méthode

Attaches this SearchPanel to a TextArea instance.
public Attach ( TextArea textArea ) : void
textArea ICSharpCode.AvalonEdit.Editing.TextArea
Résultat void
Exemple #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);
 }
Exemple #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);
 }
		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(); });
		}
Exemple #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);
 }
Exemple #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);
 }