Skip to content

Commit

Permalink
Fixing IsAutomaticCollapseEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen authored Feb 24, 2024
1 parent 7388fa8 commit 1c9e875
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Fluent.Ribbon/Controls/RibbonWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,8 @@ private static void OnIsAutomaticCollapseEnabledChanged(DependencyObject d, Depe

private void MaintainIsCollapsed()
{
if (this.IsAutomaticCollapseEnabled == false)
if (this.IsAutomaticCollapseEnabled is false)
{
this.ClearValue(IsCollapsedProperty);
return;
}

Expand Down Expand Up @@ -344,4 +343,4 @@ private void HandleIconMouseDown(object sender, MouseButtonEventArgs e)
{
return this.GetTemplateChild(name) as T;
}
}
}

0 comments on commit 1c9e875

Please sign in to comment.