Injecting ViewModel to View (ContentPage) in .Net MAUI MVVM

Copper Contributor

This is my code

It was working on version 17.1.0 Preview 6.0

I am getting error after updating to version 17.2.0 Preview 2.1

 

 

 

[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class HomePage : ContentPage
{
public HomePage(IHomePageVM homePageVM)
{
InitializeComponent();
BindingContext = homePageVM;
}
}

 

 

0 Replies