This documentation is archived and is not being maintained.

MenuItem.IsChecked Property

Gets or sets a value that indicates whether the MenuItem is checked.

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

public bool IsChecked { get; set; }
/** @property */
public boolean get_IsChecked ()

/** @property */
public void set_IsChecked (boolean value)

public function get IsChecked () : boolean

public function set IsChecked (value : boolean)

<object IsChecked="bool" .../>

Property Value

Default value is false.

Identifier Field


Metadata Flags


The following example shows how the IsChecked property can be used to place a check mark in front of a menu item.

<MenuItem Name="mi1" Style="{StaticResource CheckBoxMenu}" Header="Online" IsChecked="true" 

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0