Toggle​Menu​Flyout​Item Toggle​Menu​Flyout​Item Toggle​Menu​Flyout​Item Class


Represents an item in a MenuFlyout that a user can change between two states, checked or unchecked.

public : class ToggleMenuFlyoutItem : MenuFlyoutItem, IToggleMenuFlyoutItempublic class ToggleMenuFlyoutItem : MenuFlyoutItem, IToggleMenuFlyoutItemPublic Class ToggleMenuFlyoutItem Inherits MenuFlyoutItem Implements IToggleMenuFlyoutItem
<ToggleMenuFlyoutItem .../>
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods


There are three elements that you can use to compose the menu items in a MenuFlyout control: MenuFlyoutItem , ToggleMenuFlyoutItem, and MenuFlyoutSeparator. You can use these in any combination.

Control style and template

You can modify the default Style and ControlTemplate to give the control a unique appearance. For information about modifying a control's style and template, see Styling controls. The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP&lt;SDK version>\Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

Starting in Windows 10, version 1607 (Windows Software Development Kit (SDK) version 10.0.14393.0), generic.xaml includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. In apps that target this software development kit (SDK) or later, modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the Styling controls article.

This table shows the resources used by the ToggleMenuFlyoutItem control.

Resource keyDescription
ToggleMenuFlyoutItemBackgroundBackground color of entire control bounds at rest
ToggleMenuFlyoutItemBackgroundPointerOverBackground color on hover
ToggleMenuFlyoutItemBackgroundPressedBackground color when pressed
ToggleMenuFlyoutItemBackgroundDisabledBackground color when disabled
ToggleMenuFlyoutItemForegroundText color at rest
ToggleMenuFlyoutItemForegroundPointerOverText color on hover
ToggleMenuFlyoutItemForegroundPressedText color when pressed
ToggleMenuFlyoutItemForegroundDisabledText color when disabled
ToggleMenuFlyoutItemCheckGlyphForegroundColor of selected check mark
ToggleMenuFlyoutItemCheckGlyphForegroundPointerOverColor of selected check mark on hover
ToggleMenuFlyoutItemCheckGlyphForegroundPressedColor of selected check mark when pressed
ToggleMenuFlyoutItemCheckGlyphForegroundDisabledColor of selected check mark when disabled


ToggleMenuFlyoutItem() ToggleMenuFlyoutItem() ToggleMenuFlyoutItem()

Initializes a new instance of the ToggleMenuFlyoutItem class.

public : ToggleMenuFlyoutItem()public ToggleMenuFlyoutItem()Public Sub New()


IsChecked IsChecked IsChecked

Gets or sets whether the ToggleMenuFlyoutItem is checked.

public : PlatForm::Boolean IsChecked { get; set; }public bool IsChecked { get; set; }Public ReadWrite Property IsChecked As bool
<ToggleMenuFlyoutItem IsChecked="bool" />
PlatForm::Boolean bool bool

true if the ToggleMenuFlyoutItem is checked; false if the ToggleMenuFlyoutItem is unchecked. The default is false.


IsCheckedProperty IsCheckedProperty IsCheckedProperty

Identifies the IsChecked dependency property.

public : static DependencyProperty IsCheckedProperty { get; }public static DependencyProperty IsCheckedProperty { get; }Public Static ReadOnly Property IsCheckedProperty As DependencyProperty
DependencyProperty DependencyProperty DependencyProperty

The identifier for the IsChecked dependency property.


See Also