From 04faae2824d5d227bbc4c505ddce96837fb8cece Mon Sep 17 00:00:00 2001 From: appleneko2001 Date: Tue, 5 Jul 2022 11:36:09 +0900 Subject: [PATCH] Move dialog host control to top level as content of window, return back DialogHost demo --- Material.Demo/MainWindow.axaml | 23 +++- Material.Demo/Pages/DialogDemo.axaml | 135 +++++++----------------- Material.Demo/Pages/DialogDemo.axaml.cs | 5 +- 3 files changed, 65 insertions(+), 98 deletions(-) diff --git a/Material.Demo/MainWindow.axaml b/Material.Demo/MainWindow.axaml index f72d673..9fd0e5c 100644 --- a/Material.Demo/MainWindow.axaml +++ b/Material.Demo/MainWindow.axaml @@ -3,11 +3,12 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:styles="clr-namespace:Material.Styles;assembly=Material.Styles" xmlns:pages="clr-namespace:Material.Demo.Pages" xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:showMeTheXaml="clr-namespace:ShowMeTheXaml;assembly=ShowMeTheXaml.Avalonia" xmlns:controls="clr-namespace:Material.Styles.Controls;assembly=Material.Styles" + xmlns:dialogHostAvalonia="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia" + xmlns:models="clr-namespace:Material.Demo.Models" mc:Ignorable="d" WindowStartupLocation="CenterScreen" Width="1280" Height="720" MinWidth="720" Title="Material.Demo"> @@ -29,6 +30,22 @@ + + + + + + Your lucky number: + + + + + + + + + \ No newline at end of file diff --git a/Material.Demo/Pages/DialogDemo.axaml b/Material.Demo/Pages/DialogDemo.axaml index 5eef3cc..99c770d 100644 --- a/Material.Demo/Pages/DialogDemo.axaml +++ b/Material.Demo/Pages/DialogDemo.axaml @@ -1,11 +1,11 @@  + x:DataType="viewModels:DialogDemoViewModel" > +