Skip to content
Marc Rousavy edited this page Jun 25, 2018 · 12 revisions

Jellyfish

Jellyfish

AppVeyor badge NuGet downloads badge

🐟

An incredibly light and type safe MVVM library for .NET WPF

Jellyfish is on NuGet:

PM> Install-Package Jellyfish

Compared to other MVVM Frameworks like MVVM Light, Prism or Caliburn.Micro, this framework is

  • as light as possible
  • using modern best-practices
  • using modern code style
  • exactly fitting my needs

Wiki

This wiki shows usage of the Jellyfish framework. Use the right navigation bar for accessing the pages.

Results

Clean code.

public class LoginViewModel : ObservableObject
{
    [Property]
    public string Username { get; set; }
}

.. instead of

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");
	}
    }
}
Clone this wiki locally