This commit is contained in:
rabbitism
2024-01-21 15:45:12 +08:00
parent 497a8c2d02
commit a0598b6a47
2 changed files with 9 additions and 3 deletions

View File

@@ -24,10 +24,10 @@ public static class DialogBox
where TView : Control, new()
where TViewModel: new()
{
var t = new Border()
var t = new DialogControl()
{
Width = 100, Height = 100, Background = Brushes.Aqua, BorderBrush = Brushes.Yellow,
BorderThickness = new Thickness(1)
Content = new TView(){ DataContext = vm },
DataContext = vm,
};
t.DataContext = vm;
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);

View File

@@ -0,0 +1,6 @@
namespace Ursa.Controls;
public record OverlayDialogOptions
{
public bool ShowCloseButton { get; set; } = true;
}