Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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