Skip to content

Instantly share code, notes, and snippets.

@hatsunea
Created November 27, 2020 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatsunea/f1a749ece5873aab4e1b2044b7239c92 to your computer and use it in GitHub Desktop.
Save hatsunea/f1a749ece5873aab4e1b2044b7239c92 to your computer and use it in GitHub Desktop.
using ImageFilePickerSample.Models;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace ImageFilePickerSample.ViewModels
{
public class MainViewModel : INotifyPropertyChanged
{
private ImageModel Model = new ImageModel();
public ObservableCollection<TItem> Items
{
get { return this.Model.Items; }
set { this.Model.Items = value; }
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] String propertyName = "")
{
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment