12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CmwtatDigital.Domain
- {
- class ViewModel : INotifyPropertyChanged
- {
- private string _sn;
- public ViewModel()
- {
- LongListToTestComboVirtualization = new List<int>(Enumerable.Range(0, 1000));
- }
- public string SN
- {
- get { return _sn; }
- set
- {
- this.MutateVerbose(ref _sn, value, RaisePropertyChanged());
- }
- }
- public IList<int> LongListToTestComboVirtualization { get; }
- public event PropertyChangedEventHandler PropertyChanged;
- private Action<PropertyChangedEventArgs> RaisePropertyChanged()
- {
- return args => PropertyChanged?.Invoke(this, args);
- }
- }
- }
|