How to detect that input is coming from IME in TextBox in UWP? RRS feed

  • Question

  • I am working on input text validation for an application in UWP. I am using a textbox for user input. Based on the letter inserted, I remove character if its a special character (%, $, ..) when text changing and fix the position of cursor by TextBoxName.SelectionStart. But in Korean language when input is from IME by pressing right control, my fixing cursor position using TextBoxName.SelectionStart is not working. It always moves cursor one position right that I set during TextChanging Event.

    So, I want to know whether the input is coming from IME (Popup) or not?

    Saturday, August 15, 2020 1:29 PM

All replies

  • Hi,

    This forum only handles questions about how to submit and publish UWP apps. Your questions of developing UWP apps is out of the scope of current forum. You could ask questions about UWP development in Microsoft Q&A with windows-uwp tag.

    Best regards,


    "Developing Universal Windows apps" forum will be migrating to a new home on Microsoft Q&A (Preview)!
    We invite you to post new questions in the "Developing Universal Windows apps" forum’s new home on Microsoft Q&A (Preview)!
    For more information, please refer to the sticky post.

    Monday, August 17, 2020 3:39 AM