Skip to content

Commit e1232ea

Browse files
authored
fix(snackbar): Change type of CornerRadius-Property from Thickness to CornerRadius (#4019)
1 parent 6ec10e4 commit e1232ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MaterialDesignThemes.Wpf/Snackbar.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ public SnackbarActionButtonPlacementMode ActionButtonPlacement
189189
}
190190

191191
public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register(
192-
nameof(CornerRadius), typeof(Thickness), typeof(Snackbar), new PropertyMetadata(new Thickness(0)));
192+
nameof(CornerRadius), typeof(CornerRadius), typeof(Snackbar), new PropertyMetadata(new CornerRadius(3)));
193193

194194
[Bindable(true)]
195195
[Category("Appearance")]
196-
public Thickness CornerRadius
196+
public CornerRadius CornerRadius
197197
{
198-
get => (Thickness)GetValue(CornerRadiusProperty);
198+
get => (CornerRadius)GetValue(CornerRadiusProperty);
199199
set => SetValue(CornerRadiusProperty, value);
200200
}
201201
}

0 commit comments

Comments
 (0)