Fix StylusPlugIn OnStylusDown/Move/Up invoked on UI thread and called out of order
Fixes #11103
Main PR
Description
See https://github.com/dotnet/wpf/issues/11103
The stylusDevice.CriticalActiveSource may be null. And the stylusDevice.CriticalActiveSource will update from inputReport.InputSource. So that we directly use inputReport.InputSource will be safe and reasonable.
This PR can not 100% fix the #11103 , but this PR can alleviate the problem.
Customer Impact
Fix the out of roder issues.
Regression
None.
Testing
Test pass in my touch device.
And I build and publish my version to NuGet: https://www.nuget.org/packages/dotnetCampus.WPF.Resource/6.0.4-alpha07-test10
Risk
Normal. As description says, the stylusDevice.CriticalActiveSource will update from inputReport.InputSource in UI thread. We can directly use inputReport.InputSource in Stylus Input thread safely.