Closed andersforsgren closed 2 years ago
Actually both would be wrong alone, as the result should depend on the check ability of the menu item. 😉
Yes I suppose the correct way would be to make it conditional on IsCheckable and make either a Button or a ToggleButton?
I will give it a try
The Fluent.MenuItem class when there are no child menu items, produces a regular Button as its QuickAccessItem.
This means the MenuItem.IsChecked is not reflected as the toggle state on the QAT button.
current impl in MenuItem.cs
I suggest this should instead return a ToggleButton. The rationale being that a MenuItem, being checkable, is more similar to a ToggleButton than a Button.
So basically instead, this:
If this looks reasonable I’m happy to supply a PR
Environment