diff --git a/src/MainDemo.Wpf/App.xaml.cs b/src/MainDemo.Wpf/App.xaml.cs index baf62ae0e4..bfe9a86b75 100644 --- a/src/MainDemo.Wpf/App.xaml.cs +++ b/src/MainDemo.Wpf/App.xaml.cs @@ -1,4 +1,5 @@ -using MaterialDesign.Shared; +using System.Reflection; +using MaterialDesign.Shared; using MaterialDesignThemes.Wpf; using ShowMeTheXAML; @@ -32,7 +33,9 @@ protected override void OnStartup(StartupEventArgs e) XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag))); */ - XamlDisplay.Init(); + var sharedAssembly + = Assembly.GetAssembly(typeof(MaterialDesignDemo.Shared.IMaterialDesignDemoSharedAssemblyMarker)); + XamlDisplay.Init(sharedAssembly); // test setup for Persian culture settings /*System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fa-Ir"); diff --git a/src/MainDemo.Wpf/Dialogs.xaml b/src/MainDemo.Wpf/Dialogs.xaml index f109fca585..efd15fe467 100644 --- a/src/MainDemo.Wpf/Dialogs.xaml +++ b/src/MainDemo.Wpf/Dialogs.xaml @@ -6,6 +6,7 @@ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:smtx="clr-namespace:ShowMeTheXAML;assembly=ShowMeTheXAML" + xmlns:shared="clr-namespace:MaterialDesignDemo.Shared.Examples.Dialogs;assembly=MaterialDesignDemo.Shared" xmlns:system="clr-namespace:System;assembly=mscorlib" d:DataContext="{d:DesignInstance domain:DialogsViewModel}" d:DesignHeight="1080" @@ -368,5 +369,16 @@ + + + + + + + + + diff --git a/src/MaterialDesign3.Demo.Wpf/Dialogs.xaml b/src/MaterialDesign3.Demo.Wpf/Dialogs.xaml index 29e1d24f03..fe6975b178 100644 --- a/src/MaterialDesign3.Demo.Wpf/Dialogs.xaml +++ b/src/MaterialDesign3.Demo.Wpf/Dialogs.xaml @@ -5,6 +5,7 @@ xmlns:domain="clr-namespace:MaterialDesign3Demo.Domain" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:shared="clr-namespace:MaterialDesignDemo.Shared.Examples.Dialogs;assembly=MaterialDesignDemo.Shared" xmlns:smtx="clr-namespace:ShowMeTheXAML;assembly=ShowMeTheXAML" xmlns:system="clr-namespace:System;assembly=mscorlib" d:DataContext="{d:DesignInstance domain:DialogsViewModel}" @@ -46,6 +47,7 @@ + @@ -325,6 +327,14 @@ + + + + + + + + diff --git a/src/MaterialDesignDemo.Shared/Examples/Dialogs/DialogHostWaitForExample.xaml b/src/MaterialDesignDemo.Shared/Examples/Dialogs/DialogHostWaitForExample.xaml new file mode 100644 index 0000000000..5f7f5885f8 --- /dev/null +++ b/src/MaterialDesignDemo.Shared/Examples/Dialogs/DialogHostWaitForExample.xaml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + +