`CoreTextEditContext::NotifySelectionChanged ` An invalid parameter was passed to a function that considers invalid parameters fatal

I have two questions regarding the Universal app API in Windows::UI::Text::Core:

  1. Why doesn't pressing keys like [Enter] on the touch keyboard invoke TextChange event handler of CoreTextEditContext? (I have to handle the KeyDown event to capture [Enter] keys on the software input panel.)
  2. Why does NotifySelectionChanged when inserting a new line character at the end of the text always cause crash with exception An invalid parameter was passed to a function that considers invalid parameters fatal mentioned in the title on Windows 10 Mobile (build 10586) while it works fine on PC? I can confirm that the new selection range is correctly computed. It feels like Windows 10 Mobile lacks the failsafe mechanism in the PC version.

I know that I should not ask questions about unofficial OS builds. But I want it to work well when Windows 10 Mobile is released.


ANSWERS:


Found the problem: must do NotifyTextChanged appropriately.



 MORE:


 ? Could not load file or assembly when connect to database in UWP
 ? Could not load file or assembly using Microsoft.Extensions.Configuration.Json
 ? I am getting an error - The type or namespace name 'SettingsPane' could not be found (are you missing a using directive or an assembly reference?)
 ? Scrollviewer not working on a grid
 ? Scrollviewer not working on a grid
 ? Scrollviewer not working on a grid
 ? ISupportIncrementalLoading GridView within a ScrollViewer fires LoadMoreItemsAsync continuously
 ? Setvalue to add usercontrol in a grid not work
 ? Caption of a grid in a windows universal project
 ? Adaptive Trigger Not Working in Windows 10 UWP