feat: initialize dialog.

This commit is contained in:
rabbitism
2024-01-19 15:31:30 +08:00
parent cb89dc2b26
commit 0e91c844a7
4 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using Avalonia.Controls;
namespace Ursa.Controls;
public static class DialogBox
{
public static async Task ShowAsync()
{
return;
}
public static async Task ShowAsync<TView, TViewModel>(TViewModel vm)
where TView: Control, new()
where TViewModel: new()
{
TView t = new TView();
t.DataContext = vm;
return;
}
}