Skip to content

Instantly share code, notes, and snippets.

@prashantvc
Created December 3, 2014 07:38
Show Gist options
  • Save prashantvc/87cee14d217d070424d2 to your computer and use it in GitHub Desktop.
Save prashantvc/87cee14d217d070424d2 to your computer and use it in GitHub Desktop.
using System;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Forms;
using SplitTest;
using SplitTest.iOS;
using MonoTouch.UIKit;
[assembly:ExportRenderer(typeof(MyMasterPage), typeof(MyMasterPageRenderer))]
namespace SplitTest.iOS
{
public class MyMasterPageRenderer : TabletMasterDetailRenderer
{
protected override void OnElementChanged (VisualElementChangedEventArgs e)
{
base.OnElementChanged (e);
Console.WriteLine ("In renderer");
var split = (UISplitViewController)this;
split.MinimumPrimaryColumnWidth = 270;
split.MaximumPrimaryColumnWidth = 600;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment