feat: WIP set up interface.
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user