Exemple #1
0
 /// <summary>
 /// Triggers if a <see cref="Key"/> is pressed while the <see cref="CodeListBox"/> is focused.
 /// </summary>
 /// <param name="sender">The <see cref="object"/> which triggered the event.</param>
 /// <param name="e">The specific <see cref="KeyEventArgs"/>.</param>
 private void CodeListBox_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     Task.Factory.StartNew(() => Gui.PseudoSenseUserInteraction(CodeTextBox, CodeListBox, RecognitionEngine.PreviousWord, e), CancellationToken.None, TaskCreationOptions.None, this.scheduler);
 }
Exemple #2
0
 /// <summary>
 /// Triggers if the <see cref="CodeListBox"/> got focused.
 /// </summary>
 /// <param name="sender">The <see cref="object"/> which triggered the event.</param>
 /// <param name="e">The specific <see cref="RoutedEventArgs"/>.</param>
 private void CodeListBox_GotFocus(object sender, RoutedEventArgs e)
 {
     Task.Factory.StartNew(() => Gui.PositionListBoxAsync(CodeTextBox, CodeListBox), CancellationToken.None, TaskCreationOptions.None, this.scheduler);
 }
Exemple #3
0
 /// <summary>
 /// Triggers if a <see cref="Key"/> is pressed while the <see cref="CodeTextBox"/> is focused.
 /// </summary>
 /// <param name="sender">The <see cref="object"/> which triggered the event.</param>
 /// <param name="e">The specific <see cref="KeyEventArgs"/>.</param>
 private void CodeTextBox_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     Task.Factory.StartNew(() => Gui.RichTextBoxUserInteraction(CodeTextBox, CodeListBox, e), CancellationToken.None, TaskCreationOptions.None, this.scheduler);
 }