feat: WIP set up interface.

This commit is contained in:
rabbitism
2024-02-04 12:32:08 +08:00
parent ed21ee8189
commit f3cd4fb74b
6 changed files with 122 additions and 71 deletions

View File

@@ -2,5 +2,12 @@
public static class Drawer
{
public static Task<TResult?> ShowDialogAsync<TView, TViewModel, TResult>(TViewModel viewModel)
{
var host = OverlayDialogManager.GetHost(null);
if (host is null) return Task.FromResult(default(TResult));
var dialog = new DefaultDrawerControl();
host.AddDrawer(dialog);
return dialog.ShowAsync<TResult>();
}
}