diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-09 21:30:49 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-09 21:30:49 +0800 |
| commit | 6b9268d2d88c81c18f2cc21e343d321989dad99c (patch) | |
| tree | 051a3e1ca1c49a8e67a4da2c59fec576fc9e6ec5 /JVDesktop/Views/DashboardView.axaml.cs | |
| parent | 3f8e818b58127a2fad66ed67032344f553632c38 (diff) | |
Set up project structure and CLI integration
Diffstat (limited to 'JVDesktop/Views/DashboardView.axaml.cs')
| -rw-r--r-- | JVDesktop/Views/DashboardView.axaml.cs | 15 |
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); + } +} |
