Skip to content

Commit

Permalink
Fixes #1196
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Apr 8, 2024
1 parent ec08910 commit 65556b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

- ### Bug fixes

- [#1196](../../issues/1196) - GroupName causes the selected ToggleButton to no longer trigger the click event
- Value of `HideContextTabs` are now properly restored when `Backstage` is closed
- `RibbonTitleBar`
- Fixed rendering when `HideContextTabs` is `true`
Expand Down
10 changes: 10 additions & 0 deletions Fluent.Ribbon/Controls/ToggleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ namespace Fluent;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Markup;
using Fluent.Extensions;
using Fluent.Helpers;
using Fluent.Internal.KnownBoxes;

Expand Down Expand Up @@ -248,6 +250,14 @@ protected override void OnClick()
{
base.OnClick();
}
else
{
// Fix for #1196
var newEvent = new RoutedEventArgs(ClickEvent, this);
this.RaiseEvent(newEvent);

this.ExecuteCommand();
}
}
else
{
Expand Down

0 comments on commit 65556b6

Please sign in to comment.