Recently I've just started to learn using Xamarin and I made a tiny demo Mac app with Cocoa UI stuff for fun. Now I need to disable, and then re-enable a button on my app, I've search for a while and I've found this: How do I disable a UIButton?
But this article seems only works on iOS platform, there is no any references/methods on Xamarin.Mac. So I would like to know how to disable and enable the UI control on this platform.
Thanks and Regards, Jackson.
A
NSButtonas anEnabledproperty to enable/disable the control:Ref: https://developer.xamarin.com/api/property/MonoMac.AppKit.NSControl.Enabled/
Example: