RoutedEventAttribute: How to handle a custom event args type? #61
Unanswered
fubar-coder
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi. As far as I remember, this is not supported, I did not expect such use during development. But I think it is easy to add |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
the dependency property source generator stuff really works well. After that, I wanted to try the routed events, but I stumbled over the following problem:
Let's assume that I have an event handler delegate, like
EventHandler<MyCustomEventArgs>
, withMyCustomEventArgs
being defined as:Now, I'd like to use the following attribute:
The problem is, that it automatically generates a
OnMyCustomEvent
, which creates aRoutedEventArgs
instead of the neededMyCustomEventArgs
.Is there a way to provide the correct event arguments?
Beta Was this translation helpful? Give feedback.
All reactions