This extension aims to help you migrate your existing Xamarin.Forms applications to .NET MAUI by providing an Edit menu option to update your bindable properties in our view models to the new 'ObservableProperty' (CommunityToolkit.Mvvm.ComponentModel) implementation to cut down on boilerplate code. It will not remove your existing private properties, nor will it add default values that you may have set, so you will need to accommodate for that. However, it will take any additional 'OnPropertyChanged' lines for other properties within your setters and convert that to the proper 'NotifyPropertyChangedFor' attribute. To use, simply highlight all your public bindable properties that follow the general format below, then open the 'Edit' menu and select 'Update to ObservableProperty' to convert them. Example format before conversion:public string Test After conversion:[ObservableProperty] This extension was mostly created for internal use, but I do hope that it can be of some assistance to others. |