diff --git a/src/MainDemo.Wpf/Dialogs.xaml b/src/MainDemo.Wpf/Dialogs.xaml
index 18eae533d0..f109fca585 100644
--- a/src/MainDemo.Wpf/Dialogs.xaml
+++ b/src/MainDemo.Wpf/Dialogs.xaml
@@ -315,5 +315,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/MainDemo.Wpf/Dialogs.xaml.cs b/src/MainDemo.Wpf/Dialogs.xaml.cs
index d4dbc84366..f8816bb7df 100644
--- a/src/MainDemo.Wpf/Dialogs.xaml.cs
+++ b/src/MainDemo.Wpf/Dialogs.xaml.cs
@@ -10,6 +10,7 @@ public Dialogs()
{
DataContext = new DialogsViewModel();
InitializeComponent();
+ BlurRadiusSlider.Value = DialogHost.DefaultBlurRadius;
}
private void Sample1_DialogHost_OnDialogClosing(object sender, DialogClosingEventArgs eventArgs)
@@ -71,4 +72,19 @@ private void Sample5_DialogHost_OnDialogClosed(object sender, DialogClosedEventA
if (!string.IsNullOrWhiteSpace(AnimalTextBox.Text))
AnimalListBox.Items.Add(AnimalTextBox.Text.Trim());
}
+
+ private async void Sample6_OpenDialog(object sender, RoutedEventArgs e)
+ {
+ var sampleMessageDialog = new SampleMessageDialog
+ {
+ Message = { Text = "Some dialog content" }
+ };
+
+ await DialogHost.Show(sampleMessageDialog, "sampleDialog6");
+ }
+
+ private void Sample6_ResetBlur(object sender, RoutedEventArgs e)
+ {
+ BlurRadiusSlider.Value = DialogHost.DefaultBlurRadius;
+ }
}
diff --git a/src/MaterialDesignThemes.Wpf/DialogHost.cs b/src/MaterialDesignThemes.Wpf/DialogHost.cs
index a57f43ff40..2a3bd59f77 100644
--- a/src/MaterialDesignThemes.Wpf/DialogHost.cs
+++ b/src/MaterialDesignThemes.Wpf/DialogHost.cs
@@ -607,7 +607,7 @@ public bool ApplyBlurBackground
nameof(ApplyBlurBackground), typeof(bool), typeof(DialogHost), new PropertyMetadata(default(bool)));
- private const double DefaultBlurRadius = 16.0;
+ public const double DefaultBlurRadius = 16.0;
public double BlurRadius
{
get => (double)GetValue(BlurRadiusProperty);