Created
December 11, 2014 09:34
-
-
Save olexale/e4ed077acfd396605ac1 to your computer and use it in GitHub Desktop.
MvvmCross snippets for Xamarin Studio
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
Shortcut: cmvx | |
Group: C# | |
Description: ICommand | |
Mime: text/x-csharp | |
Template text: | |
ICommand _$myCommand$; | |
public ICommand $MyCommand$ { | |
get { | |
_$myCommand$ = _$myCommand$ ?? new MvxCommand(Do$MyCommand$); | |
return _$myCommand$; | |
} | |
} | |
void Do$MyCommand$ () | |
{ | |
$end$ | |
} |
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
Shortcut: pmvx | |
Group: C# | |
Description: Mvvm property | |
Mime: text/x-csharp | |
Template text: | |
$type$ _$privateName$; | |
public $type$ $publicName$ { | |
get { return _$privateName$; } | |
set { _$privateName$ = value; RaisePropertyChanged (() => $publicName$); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment