示例#1
0
 private void textArea_MouseWheel(object sender, MouseWheelEventArgs e)
 {
     e.Handled = CompletionWindowBase.RaiseEventPair(this.GetScrollEventTarget(), UIElement.PreviewMouseWheelEvent, UIElement.MouseWheelEvent, new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta));
 }
示例#2
0
 private void textArea_PreviewTextInput(object sender, TextCompositionEventArgs e)
 {
     e.Handled = CompletionWindowBase.RaiseEventPair(this, UIElement.PreviewTextInputEvent, UIElement.TextInputEvent, new TextCompositionEventArgs(e.Device, e.TextComposition));
 }