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

Changing MasterDetail behaviour on iPhone

$
0
0

Hi,

When using a Phone I would like the user to first see the master view at full page width and then after clicking an item (in a listview) to navigate to the relevant detail view. But on the tablet have a fixed panel on the left with the master view and detail view on the right. Currently on iOS the tablet side works as expected but the iPhone master view only shows at 80% of the width.

So on iOS I am essentially looking for the UISplitViewController behaviour on both phone and tablet. So Is there a way to get the native experience of a UISplitView on the iPhone when using a master detail page?

When trying to create a custom renderer I've noticed that this works as expected on the iPad because the TabletMasterDetailRenderer inherits from a UISplitViewController, but the PhoneMasterDetailRenderer does not.

Unfortunately the PhoneMasterDetailRenderer doesn't expose the master or detail views and stores them as private variables which makes this very difficult as I cannot reference them from a custom renderer to adjust their width.

Has anyone else tried this? This seems like obvious behaviour to me, so surely I must be missing something obvious here.

Cheers,
Rob


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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