Skip to content

Instantly share code, notes, and snippets.

@Kimserey
Last active January 2, 2017 21:50
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 Kimserey/e2f396b61eee52c5d850d160998a0f29 to your computer and use it in GitHub Desktop.
Save Kimserey/e2f396b61eee52c5d850d160998a0f29 to your computer and use it in GitHub Desktop.
Base view model Xamarin.Forms
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Dexpee
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment