You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
else// no child items {varbutton=newButton();RibbonControl.BindQuickAccessItem(this,button);returnbutton;}
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:
else// no child items {varbutton=newToggleButton();RibbonControl.Bind(this,button,nameof(this.IsChecked),IsCheckedProperty,BindingMode.TwoWay);RibbonControl.BindQuickAccessItem(this,button);returnbutton;}
If this looks reasonable I’m happy to supply a PR
Environment
Fluent.Ribbon v9..0.4
Windows 10 21H2
.NET Framework 4.8
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: