using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.VisualTree; namespace SourceGit.Views { public partial class DiffView : UserControl { public DiffView() { InitializeComponent(); } private void OnGotoFirstChange(object _, RoutedEventArgs e) { var textDiff = this.FindDescendantOfType(); textDiff?.GotoFirstChange(); e.Handled = true; } private void OnGotoPrevChange(object _, RoutedEventArgs e) { var textDiff = this.FindDescendantOfType(); textDiff?.GotoPrevChange(); e.Handled = true; } private void OnGotoNextChange(object _, RoutedEventArgs e) { var textDiff = this.FindDescendantOfType(); textDiff?.GotoNextChange(); e.Handled = true; } private void OnGotoLastChange(object _, RoutedEventArgs e) { var textDiff = this.FindDescendantOfType(); textDiff?.GotoLastChange(); e.Handled = true; } } }