Created
August 24, 2019 21:17
-
-
Save TheFo2sh/b03fa7783dc2827c99a7faf4464bd641 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class MainPageViewModel | |
{ | |
[DefaultValue("")] | |
public string Name { get; set; } | |
public string WelcomeMsg => $"Hello {Name}"; | |
public ICommand Command { get; } | |
public MainPageViewModel() | |
{ | |
Command = new Command(() => {Name="Test" }, () => Name.Length > 3); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment