Removed the INC registrations for list view items.

This commit is contained in:
Burak Kaan Köse
2026-02-08 01:41:32 +01:00
parent 9f13bcd991
commit ad9b94d407
5 changed files with 44 additions and 38 deletions
@@ -42,6 +42,15 @@ public partial class MailItemViewModel(MailCopy mailCopy) : ObservableRecipient,
[NotifyPropertyChangedRecipients]
public partial bool IsSelected { get; set; }
/// <summary>
/// Direct callback invoked when <see cref="IsSelected"/> changes.
/// Used by the ListViewItem container to update its IsCustomSelected DP
/// without subscribing to INotifyPropertyChanged (faster, AOT-safe).
/// </summary>
public Action<bool> OnSelectionChanged { get; set; }
partial void OnIsSelectedChanged(bool value) => OnSelectionChanged?.Invoke(value);
/// <summary>
/// Indicates if this mail item is currently being processed by a network operation.
/// Used to show loading state in the UI.