Presence_Desktop/Presence.Desktop/Views/GroupView.axaml.cs

33 lines
814 B
C#
Raw Normal View History

2024-12-23 11:26:41 +00:00
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<GroupViewModel>
{
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();
}
}
}