Skip to content

Add MenuItemAttach.#647

Merged
NaBian merged 3 commits intoHandyOrg:masterfrom
GF-Huang:MenuItemAttach
Sep 28, 2023
Merged

Add MenuItemAttach.#647
NaBian merged 3 commits intoHandyOrg:masterfrom
GF-Huang:MenuItemAttach

Conversation

@GF-Huang
Copy link
Member

Features:

  • Make menu items of the same level and the same group name work like radio buttons.
  • Disable the checkable menu item to uncheck itself if it is already checked.

Example:

image

JVag7sfPIr

@GF-Huang GF-Huang requested review from NaBian and ghost1372 January 25, 2021 18:39
Copy link
Member

@ghost1372 ghost1372 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why shouldn't we be able to uncheck the item?

@NaBian NaBian merged commit ebf59d2 into HandyOrg:master Sep 28, 2023
@CodingOctocat
Copy link

补充以下说明:必须要同时设置 IsCheckable="True" 才能正确启用 MenuItemAttach,如果没有设置或者 IsCheckable="False",那么 MenuItem 仍然可以 check,但是没有 radio 效果。

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

Development

Successfully merging this pull request may close these issues.

4 participants