using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; using Avalonia.ReactiveUI; using Presence.Desktop.ViewModels; using ReactiveUI; namespace Presence.Desktop.Views { public partial class GroupView : ReactiveUserControl { public GroupView() { this.WhenActivated(disposables => { }); AvaloniaXamlLoader.Load(this); } private void OnDeleteUserClick(object sender, RoutedEventArgs e) { var viewModel = (GroupViewModel)DataContext; viewModel.OnDeleteUserClick(); } private void OnEditUserClick(object sender, RoutedEventArgs e) { var viewModel = (GroupViewModel)DataContext; viewModel.OnEditUserClick(); } } }