Created
February 12, 2019 13:47
-
-
Save Char0394/a29d7321dfb4420110fc162af233df41 to your computer and use it in GitHub Desktop.
This file contains 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
using System.ComponentModel; | |
using System.Windows.Input; | |
namespace GenericAnimationFormsSample | |
{ | |
public class MainPageViewModel: INotifyPropertyChanged | |
{ | |
public ICommand ShakeCommand { get; set; } | |
public string _userName; | |
public string UserName | |
{ | |
get | |
{ | |
return _userName; | |
} | |
set | |
{ | |
_userName = value; | |
if (_userName?.Length == 5) | |
{ | |
ShakeCommand.Execute(null); | |
} | |
} | |
} | |
public event PropertyChangedEventHandler PropertyChanged; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment