When I disable a control in WPF, for example, for example a menu item, for example
MenuItem aMenuItem = ... aMenuItem.IsEnabled = false;
the text in MenuItem is still active, that is, it will not be grayed out, as you would expect when elements were disabled.
Is there an easy way to do this, not only for menu items, but also for any WPF control?
source share