コード例 #1
0
 private void TextBox3_TextCompositionEnded(TextBox sender, TextCompositionEndedEventArgs args)
 {
     // TextCompositionEndedEventArgs.StartIndex - 通过 IME 组成的文本的起始位置
     // TextCompositionEndedEventArgs.Length - 通过 IME 组成的文本的长度
     textBlock3.Text += $"TextCompositionEnded StartIndex:{args.StartIndex}, Length:{args.Length}";
     textBlock3.Text += Environment.NewLine;
 }
コード例 #2
0
ファイル: studyPg.xaml.cs プロジェクト: khiemnv/kanjiLearning
 private void SrchTxt_TextCompositionEnded(TextBox sender, TextCompositionEndedEventArgs args)
 {
     Debug.WriteLine("SrchTxt_TextCompositionEnded " + srchTxt.Text);
 }
コード例 #3
0
 private void TextBox_TextCompositionEnded(TextBox sender, TextCompositionEndedEventArgs args)
 {
     _isInputIncomplete = false;
     (DataContext as PrimaryWindowCoreLayoutViewModel).UpdateAutoSuggestCommand.Execute(AutoSuggestBox.Text);
 }
コード例 #4
0
 int ITextCompositionEndedEventArgsResolver.StartIndex(TextCompositionEndedEventArgs e) => e.StartIndex;
コード例 #5
0
 int ITextCompositionEndedEventArgsResolver.Length(TextCompositionEndedEventArgs e) => e.Length;
コード例 #6
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="TextCompositionEndedEventArgs"/>.</param>
 /// <returns>The starting location of the text that the user is composing with an IME.</returns>
 public static int StartIndex(this TextCompositionEndedEventArgs e) => Resolver.StartIndex(e);
コード例 #7
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="TextCompositionEndedEventArgs"/>.</param>
 /// <returns>The length of the portion of the text that the user is composing with an IME.</returns>
 public static int Length(this TextCompositionEndedEventArgs e) => Resolver.Length(e);
コード例 #8
0
 private void RichEditBox_TextCompositionEnded(RichEditBox sender, TextCompositionEndedEventArgs args)
 {
     _textCompositionActive = false;
 }
コード例 #9
0
 private void textEventsTB_TextCompositionEnded(TextBox sender, TextCompositionEndedEventArgs args)
 {
     AppendTextEventsLogging("CompositionEnded:" + textEventsTB.Text + "[" + args.StartIndex + "-" + args.Length + "]");
 }