Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DlgHypothesesGenerales
- {
- class RefPlanViewModel
- {
- public event PropertyChangedEventHandler PropertyChanged;
- private void NotifyPropertyChanged(string name)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
- }
- private ObservableCollection<StringObject> _List = new ObservableCollection<StringObject>();
- public ObservableCollection<StringObject> List
- {
- get { return _List; }
- set
- {
- _List = value;
- NotifyPropertyChanged("List");
- }
- }
- public RefPlanViewModel()
- {
- List = new ObservableCollection<StringObject>
- {
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" },
- new StringObject {Value = "AAA" }
- };
- }
- }
- public class StringObject
- {
- public string Value { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement