-
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Marc Rousavy edited this page Jun 28, 2018
·
12 revisions
An incredibly light and type safe MVVM library for .NET WPF, Silverlight, Xamarin and UWP
This wiki shows usage of the Jellyfish framework. Use the right navigation bar for accessing the pages.
public class LoginViewModel : ObservableObject
{
[Property]
public string Username { get; set; }
}
public class LoginViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
private string _username;
public string Username
{
get
{
return _username;
}
set
{
_username = value;
OnPropertyChanged("Username");
}
}
}