summaryrefslogtreecommitdiff
path: root/JVDesktop/Views/DashboardView.axaml.cs
blob: ae5826329a272e92c0c2975d4902f4cebf9654f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
    }
}