-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.RadioMenuFlyoutItem.IsChecked |
winrt property |
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).
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>