mercredi 10 mai 2023

How to remove all registered event handlers of a specific event from a UWP Control

I would like to know, how can I remove all the event handler registered in a particular event in a UWP Control (e.g., button or toggle switch). Consider the fact that I don't have any access to the event handle, so I can't use the deregister method like "some_event -= my_event_handler".

I found some solution [https://ift.tt/7gvMJfo] in stack overflow for the similar problem using reflection; however the solutions didn't work when I tried to implement the for UWP controls.





Aucun commentaire:

Enregistrer un commentaire