Skip to content

Commit 2444022

Browse files
committed
fix to restore the BlurRadius correctly
1 parent e98f550 commit 2444022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MaterialDesignThemes.Wpf/DialogHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private void ApplyDialogOptions(DialogOptions options)
395395
if (options.ApplyBlurEffect && _contentPresenter is not null)
396396
{
397397
options.PreviousApplyBlurEffect = ApplyBlurBackground;
398-
options.BlurRadius = BlurRadius;
398+
options.PreviousBlurRadius = BlurRadius;
399399

400400
_contentPresenter.Effect = new BlurEffect()
401401
{
@@ -435,7 +435,7 @@ private void RevertDialogOptions(DialogOptions options)
435435
{
436436
_contentPresenter.Effect = null;
437437
ApplyBlurBackground = options.PreviousApplyBlurEffect;
438-
BlurRadius = options.BlurRadius;
438+
BlurRadius = options.PreviousBlurRadius;
439439
}
440440
}
441441

0 commit comments

Comments
 (0)