using Avalonia.Input; using Avalonia.Interactivity; namespace SourceGit.Views { public partial class ConventionalCommitMessageBuilder : ChromelessWindow { public ConventionalCommitMessageBuilder() { InitializeComponent(); } private void BeginMoveWindow(object _, PointerPressedEventArgs e) { BeginMoveDrag(e); } private void OnApplyClicked(object _, RoutedEventArgs e) { if (DataContext is ViewModels.ConventionalCommitMessageBuilder builder) { if (builder.Apply()) Close(); } e.Handled = true; } } }