-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Introduce MenuItem.ToggleType #11441
Conversation
You can test this PR using the following package version. |
Yep, this should now be possible with the recent changes to how container generation works. |
You can test this PR using the following package version. |
Any update on this? Since the release of Avalonia 11, the old workaround of adding a checkbox as a MenuItem Icon doesn't work properly amwx/FluentAvalonia#367 |
Is this PR still being worked on? |
Closing this PR temporarily due to inactivity. Please ping me if this needs to be reopened. |
@jmacato Why wasn't it merged? Would be nice to have this feature |
that is why. Lack of time. |
8488cc2
to
09c1cac
Compare
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -43,7 +42,7 @@ public MainWindowViewModel() | |||
|
|||
ToggleMenuItemCheckedCommand = MiniCommand.Create(() => | |||
{ | |||
IsMenuItemChecked = !IsMenuItemChecked; | |||
// handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this comment means. Should this command be removed or does something need to be implemented here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unused now, removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to still be there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an outdated file, I don't see this command in the code
You can test this PR using the following package version. |
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -43,7 +42,7 @@ public MainWindowViewModel() | |||
|
|||
ToggleMenuItemCheckedCommand = MiniCommand.Create(() => | |||
{ | |||
IsMenuItemChecked = !IsMenuItemChecked; | |||
// handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to still be there?
You can test this PR using the following package version. |
What does the pull request do?
(bonus) Add icon and separator support for the top-level Menu(optional) Remove support for Header="-", but instead generate Separator container depending on the data contextdemo.mp4
Checklist
Fixed issues
tbd
Fixes #7663
Fixes #224
Fixes#1902Fixes #5397
Maybe #10794