I've just logged this with Microsoft Connect, but I'm wondering whether anyone else has come across it and found a fix. Google's not showing much...
Simple repro:
- Application has a WPF textbox with MaxLength set
- Use the TabletPC input panel to write more text than is allowed
- Press "insert" on the TabletPC panel and the application crashes
Beyond changing the behaviour of my application to not use MaxLength, does anyone know of a solution?
(I'll post here if Microsoft come back with any advice.)
EDIT: Should have specified I'm running .NET 3.5 and Windows 7.
Apparently this is fixed in .NET 4.0, but no plans for a 3.5 fix. The suggestion from MS was to handle the TextChanged event to provide MaxLength automatically (ew!).