Windows version: 20262.1.amd64fre.fe_release.201113-1436
Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
Problem description: When InkCanvas.EditingMode is changed to Select after drawing a stroke and then back to Ink, a NullReferenceException is thrown on mouse down and the application crashes.
Expected behavior: No crash. Changing the EditMode to Select actually results in lasso selection mode rather than the selection adorner mode (with the stroke as current lasso path) which I find rather suspicious and potentially undesirable, unless there is a reason to support changing modes while inking, but then the existing geometry should either change from ink to lasso or it should keep the ink and start a new lasso path.
5.0.100-preview.5.20279.10
20262.1.amd64fre.fe_release.201113-1436
Does the bug reproduce also in WPF for .NET Framework 4.8?:
Yes
Problem description: When
InkCanvas.EditingMode
is changed toSelect
after drawing a stroke and then back toInk
, aNullReferenceException
is thrown on mouse down and the application crashes.Actual behavior:
Expected behavior: No crash. Changing the
EditMode
toSelect
actually results in lasso selection mode rather than the selection adorner mode (with the stroke as current lasso path) which I find rather suspicious and potentially undesirable, unless there is a reason to support changing modes while inking, but then the existing geometry should either change from ink to lasso or it should keep the ink and start a new lasso path.Minimal repro: