RadioMenuFlyoutItem.IsChecked Property

Definition

Gets or sets whether the RadioMenuFlyoutItem is checked.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property bool IsChecked { bool get(); void set(bool value); };
bool IsChecked();

void IsChecked(bool value);
public bool IsChecked { get; set; }
Public Property IsChecked As Boolean

Property Value

Boolean

bool

Examples

RadioMenuFlyoutItem can be added into a MenuBarItem, MenuFlyout, or MenuFlyoutSubItem. The following example shows three radio menu flyout items as the content of a cascading menu flyout. The "Medium icons" item is checked.

Three radio menu flyout items in a View goup that allow a user to select the size of icons

<MenuFlyout>
    <MenuFlyoutSubItem Text="View">
        <muxc:RadioMenuFlyoutItem Text="Small icons"/>
        <muxc:RadioMenuFlyoutItem Text="Medium icons" IsChecked="True"/>
        <muxc:RadioMenuFlyoutItem Text="Large icons"/>
    </MenuFlyoutSubItem>
</MenuFlyout>

Applies to