using CommunityToolkit.Mvvm.ComponentModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Imaging; namespace AIK.Models.BannerModels { public partial class BannerItem : ObservableObject { [ObservableProperty] private bool _isSelected; [ObservableProperty] private string? _imagePath; [ObservableProperty] private BitmapImage? _bitmapImage; public int Index { get; set; } // 仅用于命令参数,不参与 UI 触发 } }