Silverlight Management Disables / Deletes Events

I have a scenario in which a control has an event connected to XAML, such as Button.Click.

Somewhere in my code, a security check is applied, which means that I need to disable the specified event, but I do not have access to the normal - = syntax to remove it.

How else can I remove or disable this event?

Thanks Dave

+3
source share
1 answer

The data binds the IsEnabled property of the button to your model class / DataContext, which can be updated by your code anywhere.

, "" , click -. Click , // , .

+2

Source: https://habr.com/ru/post/1749063/


All Articles