From 6b9268d2d88c81c18f2cc21e343d321989dad99c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 9 Jan 2026 21:30:49 +0800 Subject: Set up project structure and CLI integration --- JVDesktop/Views/DashboardView.axaml.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 JVDesktop/Views/DashboardView.axaml.cs (limited to 'JVDesktop/Views/DashboardView.axaml.cs') 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); + } +} -- cgit