-
-
Save hatsunea/f1a749ece5873aab4e1b2044b7239c92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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