Created
July 9, 2016 06:40
-
-
Save nuitsjp/64af138b86a1a17be6296c0f86c4789e to your computer and use it in GitHub Desktop.
WPFやXamarinのICommandを改めて整理する VM①
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 DelegateCommand ExecuteCommand { get; } | |
public MainWindowViewModel() | |
{ | |
ExecuteCommand = | |
new DelegateCommand( | |
() => Result = "登録されました", | |
CanExecute); | |
} | |
private bool CanExecute() | |
{ | |
return !string.IsNullOrWhiteSpace(Name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment