using Avalonia.Controls; using Avalonia.Interactivity; namespace AvaloniaApplication3.Views { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void NextImage(object source, RoutedEventArgs args) { Slides.Next(); } private void PreviousImage(object source, RoutedEventArgs args) { Slides.Previous(); } } }