- pdx_hoda_ismail
- Posts: 4
- Joined:
Implementation of handledEventsToo
Hello!
While checking if there is a way to add the handledEventsToo in code, I found in the Microsoft documentation that they have two implementations of the AddHandler function as below:
AddHandler(RoutedEvent, Delegate)
AddHandler(RoutedEvent, Delegate, Boolean)
However, only the first function is implemented in Noesis, and I have to use the handledEventsToo property from the second function in my case.
Is there any specific reason why it is not implemented? Or is there any plans to implement it?
It'd be great if we can use the handledEventsToo in a way to avoid workarounds with lot of code :D
An input will be highly appreciated!
Thanks!
While checking if there is a way to add the handledEventsToo in code, I found in the Microsoft documentation that they have two implementations of the AddHandler function as below:
AddHandler(RoutedEvent, Delegate)
AddHandler(RoutedEvent, Delegate, Boolean)
However, only the first function is implemented in Noesis, and I have to use the handledEventsToo property from the second function in my case.
Is there any specific reason why it is not implemented? Or is there any plans to implement it?
It'd be great if we can use the handledEventsToo in a way to avoid workarounds with lot of code :D
An input will be highly appreciated!
Thanks!
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Implementation of handledEventsToo
Hi,
Our current implementation only supports handledEventsToo to register a class handler, so controls can make sure they can handle a base class event. For example, Control does that to raise double click events in response to mouse left button down:
There is no specific reason to not implement it for AddHandler too, but it wasn't requested until now. If using the class handler is not an option in your scenario we can implement it. Could you please add a ticket to our bugtracker?
Our current implementation only supports handledEventsToo to register a class handler, so controls can make sure they can handle a base class event. For example, Control does that to raise double click events in response to mouse left button down:
Code: Select all
data->RegisterEventHandler(MouseLeftButtonDownEvent, OnMouseDown, true);
- pdx_hoda_ismail
- Posts: 4
- Joined:
Re: Implementation of handledEventsToo
Thanks for your reply. I Added it to the bug tracker as requested: https://www.noesisengine.com/bugs/view.php?id=2445
Thanks!
Thanks!
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Implementation of handledEventsToo
Thanks for the report.
Who is online
Users browsing this forum: Bing [Bot] and 23 guests