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

28 lines
688 B
C#
Raw Normal View History

2024-12-08 15:27:37 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2024-12-08 15:00:30 +00:00
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
2024-12-08 15:27:37 +00:00
using Avalonia.Platform.Storage;
2024-12-08 15:00:30 +00:00
using Avalonia.ReactiveUI;
using Presence.Desktop.ViewModels;
using ReactiveUI;
2024-12-08 15:27:37 +00:00
namespace Presence.Desktop.Views
2024-12-08 15:00:30 +00:00
{
2024-12-12 18:16:01 +00:00
public partial class GroupView : Window
2024-12-08 15:00:30 +00:00
{
2024-12-08 15:27:37 +00:00
public GroupView()
{
2024-12-12 18:16:01 +00:00
InitializeComponent();
2024-12-08 15:27:37 +00:00
}
2024-12-12 18:16:01 +00:00
private void SelectingItemsControl_OnSelectionChanged(object? sender, SelectionChangedEventArgs e)
2024-12-08 15:27:37 +00:00
{
2024-12-12 18:16:01 +00:00
if (DataContext is GroupViewModel viewModel)
{
viewModel.UpdateSelectionStates();
}
2024-12-08 15:27:37 +00:00
}
2024-12-08 15:00:30 +00:00
}
}