Share via


RadioMenuFlyoutItem.IsChecked Property

Definition

Gets or sets whether the RadioMenuFlyoutItem is checked.

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

void IsChecked(bool value);
public bool IsChecked { get; set; }
var boolean = radioMenuFlyoutItem.isChecked;
radioMenuFlyoutItem.isChecked = boolean;
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">
        <RadioMenuFlyoutItem Text="Small icons"/>
        <RadioMenuFlyoutItem Text="Medium icons" IsChecked="True"/>
        <RadioMenuFlyoutItem Text="Large icons"/>
    </MenuFlyoutSubItem>
</MenuFlyout>

Applies to