コード例 #1
0
 private bool TextChange(TextChangedType type, string text)
 {
     var e = new PreviewTextChangedEventArgs(PreviewTextChangedEvent, type, text);
     OnPreviewTextChanged(e);
     return e.Handled;
 }
コード例 #2
0
 protected virtual void OnPreviewTextChanged(PreviewTextChangedEventArgs e)
 {
     RaiseEvent(e);
 }
コード例 #3
0
 private void TextBox_OnPrevieTextChanged(object sender, PreviewTextChangedEventArgs e)
 {
     MessageBox.Show(TextBox.Text);
 }