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

Passing values between 2 opened pages

$
0
0

Hey, so in my application I am using Master and Detail page. When Detail page opens I will go to the Master (slides from the left side) and I check checkbox. I want that value pass to my Detail page. In debug mode I can see method clearly called and good value is there, but when it ends, nothing happens, can you help me?

private void Button_CheckedChanged(object sender, CheckedChangedEventArgs e)
{
if (ckeck.IsChecked == true)
{
Page2 p2= new Page2 ();
p2.dajCheck("value", true);
}
else
{
Page2 p2= new Page2 ();
p2.dajCheck("spomenici", false);
}
}

This is send value from Master to Detail, is it a good way?
I can't find anything else...

THX! :-)


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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