using Avalonia.Controls; using Avalonia.Input; using CommunityToolkit.Mvvm.Input; using ClaudeDo.Ui.ViewModels.Planning; namespace ClaudeDo.Ui.Views.Planning; public partial class PlanningDiffView : Window { public PlanningDiffView() { InitializeComponent(); } protected override void OnDataContextChanged(EventArgs e) { base.OnDataContextChanged(e); if (DataContext is PlanningDiffViewModel vm) vm.CloseAction = Close; } private void TitleBar_PointerPressed(object? sender, PointerPressedEventArgs e) { if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) BeginMoveDrag(e); } }