RadioMenuFlyoutItem.IsChecked 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 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
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.
<MenuFlyout>
<MenuFlyoutSubItem Text="View">
<muxc:RadioMenuFlyoutItem Text="Small icons"/>
<muxc:RadioMenuFlyoutItem Text="Medium icons" IsChecked="True"/>
<muxc:RadioMenuFlyoutItem Text="Large icons"/>
</MenuFlyoutSubItem>
</MenuFlyout>