Exemplo n.º 1
0
 private void CodeArea_LibraryWordEnteredEvent(object sender, LibraryWordEnteredEventArgs e)
 {
     double rightMargin = this.codeArea.ActualWidth - 200 - e.CharacterRect.Left;
     double bottomMargin = this.codeArea.ActualHeight - 100 - e.CharacterRect.Top;
     this.tipListBox.Margin = new Thickness(this.codeArea.Margin.Left + e.CharacterRect.Left,
         this.codeArea.Margin.Top + e.CharacterRect.Top,
         rightMargin,
         bottomMargin);
     this.tipListBox.ItemsSource = e.Names;
     this.tipListBox.SelectedIndex = 0;
     this.tipListBox.Visibility = Visibility.Visible;
     this.isAutocompleteListShown = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Fires a LibraryWordEntered event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected virtual void OnLibraryWordEntered(LibraryWordEnteredEventArgs e)
 {
     if (this.LibraryWordEnteredEvent != null)
     {
         this.LibraryWordEnteredEvent(this, e);
     }
 }