IsCheckable Property

MenuItem.IsCheckable Property


Gets a value that indicates whether a MenuItem can be checked.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool IsCheckable { get; set; }

Property Value

Type: System.Boolean

true if the menu item can be checked; otherwise, false. The default is false.

Identifier field


Metadata properties set to true


Legacy Code Example

The following example shows how to make MenuItem controls that are checked when a user clicks them.

Code snippet is not found. Confirm that the code snippet name 'MenuEvent' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft