Created
December 3, 2014 07:38
-
-
Save prashantvc/87cee14d217d070424d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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