I am currently working on the migration from XF to Maui for our app. I also want to change from FreshMVVM to the CommunityToolkit.MVVM.
Before, I had the Init function with some InitData, e.g.
public override void Init(object initData)
{
base.Init(initData);
if( initData is TextInfoViewModel model )
{
Heading = model.Heading;
HeaderTitle = model.HeaderText;
Text = model.Text;
}
}
and this data is given through this:
this.CreateNavigationCommand<AccountAboutPageModel>(false, true, ETransitionType.SlideFromRight, vm);
How can I do this with the Toolkit MVVM?