Skip to content

Commit 9ed1495

Browse files
Set explicit default values for enum based APs
1 parent 1dc314a commit 9ed1495

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MaterialDesignThemes.Wpf/TabAssist.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public static void SetHeaderPanelCustomContent(DependencyObject obj, object? val
5151
public static bool GetIsOverflowing(DependencyObject obj)
5252
=> (bool)obj.GetValue(IsOverflowingProperty);
5353

54+
internal static void SetIsOverflowing(DependencyObject obj, bool value)
55+
=> obj.SetValue(IsOverflowingPropertyKey, value);
56+
5457
public static bool GetUseNavigationPanel(DependencyObject obj)
5558
=> (bool)obj.GetValue(UseNavigationPanelProperty);
5659

@@ -76,7 +79,7 @@ public static void SetNavigationPanelPlacement(DependencyObject obj, NavigationP
7679
=> obj.SetValue(NavigationPanelPlacementProperty, value);
7780

7881
public static readonly DependencyProperty NavigationPanelPlacementProperty = DependencyProperty.RegisterAttached(
79-
"NavigationPanelPlacement", typeof(NavigationPanelPlacement), typeof(TabAssist), new PropertyMetadata(default(NavigationPanelPlacement)));
82+
"NavigationPanelPlacement", typeof(NavigationPanelPlacement), typeof(TabAssist), new PropertyMetadata(NavigationPanelPlacement.Split));
8083

8184
public static NavigationPanelBehavior GetNavigationPanelBehavior(DependencyObject obj)
8285
=> (NavigationPanelBehavior)obj.GetValue(NavigationPanelBehaviorProperty);
@@ -85,10 +88,7 @@ public static void SetNavigationPanelBehavior(DependencyObject obj, NavigationPa
8588
=> obj.SetValue(NavigationPanelBehaviorProperty, value);
8689

8790
public static readonly DependencyProperty NavigationPanelBehaviorProperty = DependencyProperty.RegisterAttached(
88-
"NavigationPanelBehavior", typeof(NavigationPanelBehavior), typeof(TabAssist), new PropertyMetadata(default(NavigationPanelBehavior)));
89-
90-
internal static void SetIsOverflowing(DependencyObject obj, bool value)
91-
=> obj.SetValue(IsOverflowingPropertyKey, value);
91+
"NavigationPanelBehavior", typeof(NavigationPanelBehavior), typeof(TabAssist), new PropertyMetadata(NavigationPanelBehavior.Scroll));
9292

9393
public static Visibility GetBindableIsItemsHost(DependencyObject obj)
9494
=> (Visibility)obj.GetValue(BindableIsItemsHostProperty);

0 commit comments

Comments
 (0)