Skip to content

Commit 1c9e875

Browse files
authored
Fixing IsAutomaticCollapseEnabled
1 parent 7388fa8 commit 1c9e875

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Fluent.Ribbon/Controls/RibbonWindow.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ private static void OnIsAutomaticCollapseEnabledChanged(DependencyObject d, Depe
245245

246246
private void MaintainIsCollapsed()
247247
{
248-
if (this.IsAutomaticCollapseEnabled == false)
248+
if (this.IsAutomaticCollapseEnabled is false)
249249
{
250-
this.ClearValue(IsCollapsedProperty);
251250
return;
252251
}
253252

@@ -344,4 +343,4 @@ private void HandleIconMouseDown(object sender, MouseButtonEventArgs e)
344343
{
345344
return this.GetTemplateChild(name) as T;
346345
}
347-
}
346+
}

0 commit comments

Comments
 (0)