Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ListViewModel : INotifyPropertyChanged {
- public event PropertyChangedEventHandler PropertyChanged;
- private Games games;
- public Games Games //Set this up for property notifications
- {
- get { return games; }
- set
- {
- games = value;
- OnPropertyChanged("Games");
- }
- }
- public ListViewModel() {
- Games = new Games {
- Title = "If things are set here they work",
- Path = "bbb",
- Genres = "ccc",
- Link = "www.google.co.uk",
- Icon = "ddd",
- Poster = "eee",
- Banner = "fff",
- };
- }
- //Implement notification call
- private void OnPropertyChanged(string propertyName)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement