WIP
This commit is contained in:
@@ -24,10 +24,10 @@ public static class DialogBox
|
|||||||
where TView : Control, new()
|
where TView : Control, new()
|
||||||
where TViewModel: new()
|
where TViewModel: new()
|
||||||
{
|
{
|
||||||
var t = new Border()
|
var t = new DialogControl()
|
||||||
{
|
{
|
||||||
Width = 100, Height = 100, Background = Brushes.Aqua, BorderBrush = Brushes.Yellow,
|
Content = new TView(){ DataContext = vm },
|
||||||
BorderThickness = new Thickness(1)
|
DataContext = vm,
|
||||||
};
|
};
|
||||||
t.DataContext = vm;
|
t.DataContext = vm;
|
||||||
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
|
var host = OverlayDialogManager.GetOverlayDialogHost(hostId);
|
||||||
|
|||||||
6
src/Ursa/Controls/Dialog/OverlayDialogOptions.cs
Normal file
6
src/Ursa/Controls/Dialog/OverlayDialogOptions.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Ursa.Controls;
|
||||||
|
|
||||||
|
public record OverlayDialogOptions
|
||||||
|
{
|
||||||
|
public bool ShowCloseButton { get; set; } = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user