From 07b9603b6e338d8e354f5361c97481f22a5c7147 Mon Sep 17 00:00:00 2001 From: Corvin Date: Thu, 12 Mar 2026 18:01:53 +0100 Subject: [PATCH] fix(snackbar): Change type of CornerRadius-Property from Thickness to CornerRadius --- src/MaterialDesignThemes.Wpf/Snackbar.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MaterialDesignThemes.Wpf/Snackbar.cs b/src/MaterialDesignThemes.Wpf/Snackbar.cs index b68fcd928a..4e77c12998 100644 --- a/src/MaterialDesignThemes.Wpf/Snackbar.cs +++ b/src/MaterialDesignThemes.Wpf/Snackbar.cs @@ -189,13 +189,13 @@ public SnackbarActionButtonPlacementMode ActionButtonPlacement } public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register( - nameof(CornerRadius), typeof(Thickness), typeof(Snackbar), new PropertyMetadata(new Thickness(0))); + nameof(CornerRadius), typeof(CornerRadius), typeof(Snackbar), new PropertyMetadata(new CornerRadius(3))); [Bindable(true)] [Category("Appearance")] - public Thickness CornerRadius + public CornerRadius CornerRadius { - get => (Thickness)GetValue(CornerRadiusProperty); + get => (CornerRadius)GetValue(CornerRadiusProperty); set => SetValue(CornerRadiusProperty, value); } }