Skip to content
| Marketplace
Sign in
Visual Studio>Tools>MAUI Migration Helper - Observable.Propertifier
MAUI Migration Helper - Observable.Propertifier

MAUI Migration Helper - Observable.Propertifier

Justin McLin

|
692 installs
| (0) | Free
This extension aims to help you convert Xamarin.Forms bindable property boilerplate code to .NET MAUI 'ObservableProperty' (CommunityToolkit.Mvvm.ComponentModel)
Download

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
{
 get => test;
 set
 {
  test = value;
  OnPropertyChanged();
  OnPropertyChanged(nameof(OtherProperty));
  OnPropertyChanged("SupportsPropertyNamesLikeThisToo");
 }
}

After conversion:

[ObservableProperty]
[NotifyPropertyChangedFor(nameof(OtherProperty))]
[NotifyPropertyChangedFor(nameof(SupportsPropertyNamesLikeThisToo))]
private string test;

This extension was mostly created for internal use, but I do hope that it can be of some assistance to others.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft