I have a .NET MAUI app with a page registered as transient in MauiProgram.cs. I want to be able to reset the page using a button on the page itself but do not know how. Please could someone help me.
I've already tried using this code, but it did not do anything:
[RelayCommand]
public async Task ReloadPageAsync()
{
await Shell.Current.GoToAsync("../"+nameof(MyPage), false);
}