Skip to content

MenuItemMarkupExtensions.IsEnabled method

Sets the local enabled state, which the command’s CanExecute is combined with rather than replacing.

public static MenuItem IsEnabled(this MenuItem target, bool value = true)
parameter description
target Target MenuItem.
value Value assigned to IsEnabled.

The same element for chaining.

Sets: MenuItem.IsEnabled