summaryrefslogtreecommitdiff
path: root/JVDesktop/Views/DashboardView.axaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'JVDesktop/Views/DashboardView.axaml.cs')
-rw-r--r--JVDesktop/Views/DashboardView.axaml.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/JVDesktop/Views/DashboardView.axaml.cs b/JVDesktop/Views/DashboardView.axaml.cs
new file mode 100644
index 0000000..ae58263
--- /dev/null
+++ b/JVDesktop/Views/DashboardView.axaml.cs
@@ -0,0 +1,15 @@
+using Avalonia.Controls;
+using Avalonia.Input;
+
+namespace JVDesktop.Views;
+
+public partial class DashboardView : Window
+{
+ public DashboardView() => InitializeComponent();
+
+ private void MoveWindow(object sender, PointerPressedEventArgs e)
+ {
+ if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)
+ BeginMoveDrag(e);
+ }
+}