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
The data binds the IsEnabled property of the button to your model class / DataContext, which can be updated by your code anywhere.
, "" , click -. Click , // , .
Source: https://habr.com/ru/post/1749063/More articles:PHP: Modifying an array recursively? - arraysC ++ - SDL not working - c ++Monotouch creates UIViews using () blocks - iphoneshell script error logging - scriptingПроверьте, не работает ли устройство Windows Mobile в режиме ожидания - c#Is it possible to put myBatis (iBatis) xml mappers outside the project? - ibatisSilverlight ~ MVVM ~ Dynamically adjusts the Style property based on the model value - coding-styleMono fast enough for Mac OS X? - performanceSQL trigger for audit table - sqlWriting Filestream to file and reading bfile - c #All Articles