I've a ContentView in .NET MAUI with two bindable properties: ListData and ListType. ListData is of type string and contains a serialized JSON object. ListType is a string whose value controls the appearance of the list. The ContentView itself consists mainly of a CollectionView and I'm using the MVVM Community Toolkit.
My question:
Where to create an instance of the viewmodel with the values of the bindable properties and assign it to the BindingContext? The values of the bindable properties are not yet present in the constructor of the ContentView.