コード例 #1
0
 private void TextBox3_TextCompositionStarted(TextBox sender, TextCompositionStartedEventArgs args)
 {
     // TextCompositionStartedEventArgs.StartIndex - 通过 IME 组成的文本的起始位置
     // TextCompositionStartedEventArgs.Length - 通过 IME 组成的文本的长度
     textBlock3.Text += $"TextCompositionStarted StartIndex:{args.StartIndex}, Length:{args.Length}";
     textBlock3.Text += Environment.NewLine;
 }
コード例 #2
0
 int ITextCompositionStartedEventArgsResolver.StartIndex(TextCompositionStartedEventArgs e) => e.StartIndex;
コード例 #3
0
 int ITextCompositionStartedEventArgsResolver.Length(TextCompositionStartedEventArgs e) => e.Length;
コード例 #4
0
 /// <summary>
 /// Gets the starting location of the text that the user is composing with an Input Method Editor (IME).
 /// </summary>
 /// <param name="e">The requested <see cref="TextCompositionStartedEventArgs"/>.</param>
 /// <returns>The starting location of the text that the user is composing with an IME.</returns>
 public static int StartIndex(this TextCompositionStartedEventArgs e) => Resolver.StartIndex(e);
コード例 #5
0
 /// <summary>
 /// Gets the length of the portion of the text that the user is composing with an Input Method Editor (IME).
 /// </summary>
 /// <param name="e">The requested <see cref="TextCompositionStartedEventArgs"/>.</param>
 /// <returns>The length of the portion of the text that the user is composing with an IME.</returns>
 public static int Length(this TextCompositionStartedEventArgs e) => Resolver.Length(e);
コード例 #6
0
 private void TextBox_TextCompositionStarted(TextBox sender, TextCompositionStartedEventArgs args)
 {
     _isInputIncomplete = true;
 }
コード例 #7
0
 private void PATH_RICH_EDIT_BOX_TextCompositionStarted(RichEditBox sender, TextCompositionStartedEventArgs args)
 {
 }
コード例 #8
0
 private void RichEditBox_TextCompositionStarted(RichEditBox sender, TextCompositionStartedEventArgs args)
 {
     _textCompositionActive = true;
 }
コード例 #9
0
 private void textEventsTB_TextCompositionStarted(TextBox sender, TextCompositionStartedEventArgs args)
 {
     AppendTextEventsLogging("CompositionStarted:" + textEventsTB.Text + "[" + args.StartIndex + "-" + args.Length + "]");
 }
コード例 #10
0
 /// <summary>
 /// Prevent IME(Chinese word) input
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void CustomPasswordBox_TextCompositionStarted(TextBox sender, TextCompositionStartedEventArgs args)
 {
     return;
 }