diff --git a/demo/Ursa.Demo/Pages/DrawerDemo.axaml b/demo/Ursa.Demo/Pages/DrawerDemo.axaml
index 4dfb13d..866d7d1 100644
--- a/demo/Ursa.Demo/Pages/DrawerDemo.axaml
+++ b/demo/Ursa.Demo/Pages/DrawerDemo.axaml
@@ -13,5 +13,6 @@
+
diff --git a/demo/Ursa.Demo/ViewModels/DrawerDemoViewModel.cs b/demo/Ursa.Demo/ViewModels/DrawerDemoViewModel.cs
index 68f884c..2d44a87 100644
--- a/demo/Ursa.Demo/ViewModels/DrawerDemoViewModel.cs
+++ b/demo/Ursa.Demo/ViewModels/DrawerDemoViewModel.cs
@@ -13,6 +13,7 @@ namespace Ursa.Demo.ViewModels;
public partial class DrawerDemoViewModel: ObservableObject
{
public ICommand OpenDrawerCommand { get; set; }
+ public ICommand OpenDefaultDrawerCommand { get; set; }
[ObservableProperty] private Position _selectedPosition;
@@ -20,6 +21,19 @@ public partial class DrawerDemoViewModel: ObservableObject
public DrawerDemoViewModel()
{
OpenDrawerCommand = new AsyncRelayCommand(OpenDrawer);
+ OpenDefaultDrawerCommand = new AsyncRelayCommand(OpenDefaultDrawer);
+ SelectedPosition = Position.Right;
+ }
+
+ private Task OpenDefaultDrawer()
+ {
+ return Drawer.Show(new PlainDialogViewModel(), new DefaultDrawerOptions()
+ {
+ Buttons = DialogButton.OKCancel,
+ Position = SelectedPosition,
+ Title = "Please select a date",
+ CanClickOnMaskToClose = false,
+ });
}
private async Task OpenDrawer()
diff --git a/src/Ursa.Themes.Semi/Controls/Drawer.axaml b/src/Ursa.Themes.Semi/Controls/Drawer.axaml
index 9473930..31db2d0 100644
--- a/src/Ursa.Themes.Semi/Controls/Drawer.axaml
+++ b/src/Ursa.Themes.Semi/Controls/Drawer.axaml
@@ -63,4 +63,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Ursa/Controls/Drawer/DefaultDrawerControl.cs b/src/Ursa/Controls/Drawer/DefaultDrawerControl.cs
index f457b29..a4ef226 100644
--- a/src/Ursa/Controls/Drawer/DefaultDrawerControl.cs
+++ b/src/Ursa/Controls/Drawer/DefaultDrawerControl.cs
@@ -59,9 +59,68 @@ public class DefaultDrawerControl: DrawerControlBase
_okButton = e.NameScope.Find