Visual Studio Snippet – MvvmCross ViewModel Property
I’ve been doing a lot work with Xamarin and the excellent MvvmCross framework lately. One thing I quickly grew tired of was writing out the ViewModel properties with the “RaisePropertyChanged” event:
1 2 3 4 5 6 7 8 9 10 |
private string _foo; public string Foo { get { return _rawContent; } set { _foo= value; RaisePropertyChanged(() => Foo); } } |
As most Visual Studio C# developers are aware, you can type “prop” or “propfull” and tab twice to generate properties automatically via Visual … [Read more…]