feat: basic position.
This commit is contained in:
17
src/Ursa/Controls/Drawer/Options/CustomDrawerOptions.cs
Normal file
17
src/Ursa/Controls/Drawer/Options/CustomDrawerOptions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Ursa.Common;
|
||||
|
||||
namespace Ursa.Controls.Options;
|
||||
|
||||
public class CustomDrawerOptions
|
||||
{
|
||||
internal static CustomDrawerOptions Default => new ();
|
||||
public Position Position { get; set; } = Position.Right;
|
||||
public bool CanClickOnMaskToClose { get; set; } = true;
|
||||
public bool CanLightDismiss { get; set; } = false;
|
||||
public bool ShowMask { get; set; } = true;
|
||||
public bool IsCloseButtonVisible { get; set; } = true;
|
||||
public double? MinWidth { get; set; } = null;
|
||||
public double? MinHeight { get; set; } = null;
|
||||
public double? MaxWidth { get; set; } = null;
|
||||
public double? MaxHeight { get; set; } = null;
|
||||
}
|
||||
19
src/Ursa/Controls/Drawer/Options/DefaultDrawerOptions.cs
Normal file
19
src/Ursa/Controls/Drawer/Options/DefaultDrawerOptions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Ursa.Common;
|
||||
|
||||
namespace Ursa.Controls.Options;
|
||||
|
||||
public class DefaultDrawerOptions
|
||||
{
|
||||
internal static DefaultDrawerOptions Default => new ();
|
||||
public Position Position { get; set; } = Position.Right;
|
||||
public bool CanClickOnMaskToClose { get; set; } = true;
|
||||
public bool CanLightDismiss { get; set; } = false;
|
||||
public bool ShowMask { get; set; } = true;
|
||||
public bool IsCloseButtonVisible { get; set; } = true;
|
||||
public double? MinWidth { get; set; } = null;
|
||||
public double? MinHeight { get; set; } = null;
|
||||
public double? MaxWidth { get; set; } = null;
|
||||
public double? MaxHeight { get; set; } = null;
|
||||
public DialogButton Buttons { get; set; } = DialogButton.OKCancel;
|
||||
public string? Title { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user