Interactive Ink

Set mouse cursor position after letter has been written

I'm using the Windows UWP SDK. After each letter has been written and recognized, I want the cursor to be put back in the middle of my application. I'm using:

Window.Current.CoreWindow.PointerPosition = new Point(Window.Current.Bounds.Width / 2, Window.Current.Bounds.Height / 2);

to set the cursor to the center of the application, but I don't know how/when to call it so this line fires after the previous letter has been written. Where in SmartGuideUserControl is each letter processed and written to the screen? How do I call the above line of code from SmartGuideUserControl?

1 Comment

Dear Derek,


Thank you for your question. 


currently, if using the EditorUserControl, did you try setting the pointer Position in the "ContentChanged" function?


If not using it, you should implement the IEditorListener, and when the "ContentChanged" function is called, set the pointer position.


Let me know if this helps.


Best regards,


Olivier


Login or Signup to post a comment