Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to change detail page to the other detail page?

$
0
0

I want to change detail page to the other detail page. The other words, when I click the masterpage's button, The detail page will be changed.

Here's my code:

void MyPageClicked(object sender, EventArgs e)
{
new MainPage().Detail = new MyPage();
((MasterDetailPage)Parent).IsPresented = false;
}

'((MasterDetailPage)Parent).IsPresented=false;' is worked, but 'new MainPage().Detail=new MyPage();' code isn;t worked. How do I change the code?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>