Closed taoyouh closed 6 years ago
The direct solution is to use dispatcher to call the constructors, which I am working on. However I think these event should not use RoutedEventArgs
because they are not routed at all. Even if the event is routed, RoutedEventHandler
should be used instead of EventHandler
.
You are right, I'm going to rewrite these events to do some true routed events.
Resolved by 211399e92fe2533a0081cd72601affd6b09c61cb
XAML code:
Exception:
It seems that RoutedEventArgs constructor should be called in UI thread.