Skip to content

Instantly share code, notes, and snippets.

public class ViewModel : INotifyPropertyChanged
{
public ViewModel()
{
Clear = new Command(() => Name = string.Empty);
}
public ICommand Clear { get; }
public string Greeting => $"Hello, {Name}!";