0
I am creating a method to open any screen I pass in the parameter.
I did this method:
public async Task NavigateTo(Page page)
{
await App.MasterDetail.Detail.Navigation.PushAsync(new page());
}
But every time I compile from one mistake
CS0118 "page" é um variável, mas é usado como um tipo
What you have to do to make it work?
instead of putting a new page, I think you should just put the page, which is being sent in the parameter. In my view, this way you will be starting a page that doesn’t even exist.
– Samuel Rizzon
All right @Samuel, I’m gonna try this to see what
– Matheus Ribeiro