feat: initialize dialog.
This commit is contained in:
20
src/Ursa/Controls/Dialog/DialogBox.cs
Normal file
20
src/Ursa/Controls/Dialog/DialogBox.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user