feat: simplify name, set to center by default.

This commit is contained in:
rabbitism
2024-01-24 01:50:56 +08:00
parent 9441d7577e
commit 564a53409e
4 changed files with 31 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ public static class OverlayDialog
Content = new TView(){ DataContext = vm },
DataContext = vm,
};
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
var host = OverlayDialogManager.GetHost(hostId);
host?.AddModalDialog(t);
return t.ShowAsync<TResult>();
}
@@ -69,7 +69,7 @@ public static class OverlayDialog
ExtendToClientArea = options.ExtendToClientArea,
Title = options.Title,
};
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
var host = OverlayDialogManager.GetHost(hostId);
host?.AddModalDialog(t);
return t.ShowAsync<TResult>();
}
@@ -82,7 +82,7 @@ public static class OverlayDialog
Content = new TView() { DataContext = vm },
DataContext = vm,
};
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
var host = OverlayDialogManager.GetHost(hostId);
host?.AddDialog(t);
}
@@ -96,7 +96,7 @@ public static class OverlayDialog
ExtendToClientArea = options.ExtendToClientArea,
Title = options.Title,
};
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
var host = OverlayDialogManager.GetHost(hostId);
host?.AddModalDialog(t);
}
}