Hi,
I currently have an application that makes use of Xamarin.Forms. Now, as my masterpage, I am using a MasterDetailPage. This MasterDetailPage translates to an UISplitViewController on iOS and the standard behaviour of an UISplitViewController is to show the masterview on landscape mode (only on iPad). I'd like to mimic the behaviour of the iPhone: collapsed on default and when the user taps the left top button, the masterview has to expand.
I made a custom renderer, but I don't really know how to achieve this. The code for the iPad custom renderer is:
[assembly: ExportRenderer(typeof(MasterPage), typeof(IpadCustomMasterDetailRenderer), MonoTouch.UIKit.UIUserInterfaceIdiom.Pad)]
namespace iOS.Renderers
{
public class IpadCustomMasterDetailRenderer : TabletMasterDetailRenderer
{
public IpadCustomMasterDetailRenderer() {
ShouldHideViewController = (svc, controller, inOrientation) => {
return true;
};
}
}
}
Unfortunately this always hides the masterview. Is there a way to hide the masterview on default?