Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RadioMenuFlyoutItem and ToggleMenuFlyoutItem #1108

Closed
bdlukaa opened this issue Aug 26, 2024 · 0 comments
Closed

Implement RadioMenuFlyoutItem and ToggleMenuFlyoutItem #1108

bdlukaa opened this issue Aug 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bdlukaa
Copy link
Owner

bdlukaa commented Aug 26, 2024

RadioMenuFlyoutItem
RadioMenuFlyoutItem lets only one element of its group to be checked.

    <muxc:MenuBarItem Title="View">
        <MenuFlyoutItem Text="Output"/>
        <MenuFlyoutSeparator/>
        <muxc:RadioMenuFlyoutItem Text="Landscape" GroupName="OrientationGroup"/>
        <muxc:RadioMenuFlyoutItem Text="Portrait" GroupName="OrientationGroup" IsChecked="True"/>
        <MenuFlyoutSeparator/>
        <muxc:RadioMenuFlyoutItem Text="Small icons" GroupName="SizeGroup"/>
        <muxc:RadioMenuFlyoutItem Text="Medium icons" IsChecked="True" GroupName="SizeGroup"/>
        <muxc:RadioMenuFlyoutItem Text="Large icons" GroupName="SizeGroup"/>
    </muxc:MenuBarItem>

image

ToggleMenuFlyoutItem
ToggleMenuFlyoutItem lets several elements of its group to be checked.

<Button Content="Options">
    <Button.Flyout>
        <MenuFlyout>
            <MenuFlyoutItem Text="Reset"/>
            <MenuFlyoutSeparator/>
            <ToggleMenuFlyoutItem Text="Repeat" IsChecked="False"/>
            <ToggleMenuFlyoutItem Text="Shuffle" IsChecked="True"/>
        </MenuFlyout>
    </Button.Flyout>
</Button>

image

@bdlukaa bdlukaa added the enhancement New feature or request label Aug 26, 2024
@bdlukaa bdlukaa changed the title Implement RadioMenuFlyoutItem Implement RadioMenuFlyoutItem and ToggleMenuFlyoutItem Aug 26, 2024
bdlukaa added a commit that referenced this issue Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant