Skip to content

Instantly share code, notes, and snippets.

@olexale
Created December 11, 2014 09:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save olexale/e4ed077acfd396605ac1 to your computer and use it in GitHub Desktop.
MvvmCross snippets for Xamarin Studio
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$
}
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