Skip to content

Commit 5b0141b

Browse files
jizcKeboo
authored andcommitted
Fixed DependencyProperty getters and setters (#1500)
* Fixed PopupPlacement getter and setter * Fixed ButtonProgressAssist properties
1 parent 2dd7704 commit 5b0141b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MaterialDesignThemes.Wpf/ButtonProgressAssist.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void SetIsIndeterminate(DependencyObject element, bool isIndetermi
5454

5555
public static bool GetIsIndeterminate(DependencyObject element)
5656
{
57-
return (bool)element.GetValue(IndicatorForegroundProperty);
57+
return (bool)element.GetValue(IsIndeterminateProperty);
5858
}
5959

6060
public static readonly DependencyProperty IndicatorForegroundProperty = DependencyProperty.RegisterAttached(
@@ -80,7 +80,7 @@ public static void SetIndicatorBackground(DependencyObject element, Brush indica
8080

8181
public static Brush GetIndicatorBackground(DependencyObject element)
8282
{
83-
return (Brush)element.GetValue(IndicatorForegroundProperty);
83+
return (Brush)element.GetValue(IndicatorBackgroundProperty);
8484
}
8585

8686
public static readonly DependencyProperty IsIndicatorVisibleProperty = DependencyProperty.RegisterAttached(

MaterialDesignThemes.Wpf/ValidationAssist.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public static void SetUsePopup(DependencyObject element, bool value)
6464

6565
public static PlacementMode GetPopupPlacement(DependencyObject element)
6666
{
67-
return (PlacementMode)element.GetValue(UsePopupProperty);
67+
return (PlacementMode)element.GetValue(PopupPlacementProperty);
6868
}
6969

7070
public static void SetPopupPlacement(DependencyObject element, PlacementMode value)
7171
{
72-
element.SetValue(UsePopupProperty, value);
72+
element.SetValue(PopupPlacementProperty, value);
7373
}
7474

7575
/// <summary>

0 commit comments

Comments
 (0)