xaml extract :
<Button ... Command="{Binding NextPageButtonCommand, Mode=OneWay}" CommandParameter="wallet" />
In This code command callback with parameter works well :
NextPageButtonCommand = new Command<string>(parameter => Debug.WriteLine(parameter));
But with this this code with async and PushPageModel is not working...
NextPageButtonCommand = new Command<string>(async typeOfCase => await CoreMethods.PushPageModel<TargetPageModel>(typeOfCase));
TargetPageModel
public class TargetPageModel : FreshBasePageModel
{
public TargetPageModel(string parameter)
{
CreateYourCodeText = "Créez votre code :";
}
}
Thank you for your help :)