using System.Collections.Generic; using System.Collections.ObjectModel; using PcgsInvUi.Models; using ReactiveUI; namespace PcgsInvUi.ViewModels; public class CoinListViewModel : ViewModelBase { public ObservableCollection CoinCollection { get; set; } private float _totalValue; public float TotalValue { get => _totalValue; set => this.RaiseAndSetIfChanged(ref _totalValue, value); } public Coin? SelectedCoin { get; set; } public CoinListViewModel(IEnumerable items) { CoinCollection = new ObservableCollection(items); TotalValue = 0; } }