MVVMCross Code Snippets for Visual Studio? -
where can download snippets visual studio, likes pf pmvx, cmvx , others? though available on github projects, can't find them...
i've created own. please remember these resharper's template.
mvxcom -> command
#region $region$ command private mvxcommand _$name$command; public icommand $pname$command { { _$name$command = _$name$command ?? new mvxcommand(do$pname$command); return _$name$command; } } private void do$pname$command() { $end$ } #endregion
mvxprop -> properties
#region $region$ private $type$ _$name$; public $type$ $pname$ { { return _$name$; } set { _$name$ = value; raisepropertychanged(() => $pname$); } } #endregion $end$
mvxset -> binding set
var set = this.createbindingset<$view$, $view$model>(); set.bind($element$).to(vm => vm$end$); set.apply();
you can add them resharper using resharper>template explorer>live templates>new template.
please feel free change them desire.
Comments
Post a Comment