You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by fubar-coder August 27, 2024
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>, with MyCustomEventArgs being defined as:
I'd suggest a simple option, which allows to specify your custom OnMyCustomEvent function name, which has the following effect of suppressing the automatic implementation of the default On* function. This would allow s/o to implement a custom function with the "correct" event arguments.
Discussed in #61
Originally posted by fubar-coder August 27, 2024
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?
The text was updated successfully, but these errors were encountered: