MenuItem.IsCheckable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether a MenuItem can be checked.
public:
property bool IsCheckable { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsCheckable { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsCheckable : bool with get, set
Public Property IsCheckable As Boolean
Property Value
true
if the menu item can be checked; otherwise, false
. The default is false
.
- Attributes
Examples
The following example shows how to make MenuItem controls that are checked when a user clicks them.
<MenuItem Header="_New" IsCheckable="true"/>
Remarks
Dependency Property Information
Identifier field | IsCheckableProperty |
Metadata properties set to true |
None |
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.