Skip to content

Instantly share code, notes, and snippets.

@olexale
Created December 11, 2014 09:34
Show Gist options
  • Save olexale/e4ed077acfd396605ac1 to your computer and use it in GitHub Desktop.
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