.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,607 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In my ViewModel, I had a RelayCommand to send parameters to another page.
[RelayCommand]
public async Task ReviewIt()
{
// ...
await Shell.Current.GoToAsync(nameof(ReviewItView), new Dictionary<string, object>{ ["key1"] = value1, ["key2"] = value2 })
}
but it failed with the exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
How to correct this?