public override void LoadView() { NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Compose, delegate { var actionSheet = new UIActionSheet("Email", null, "Cancel", "PNG", "PDF") { Style = UIActionSheetStyle.Default }; actionSheet.Clicked += delegate(object sender, UIButtonEventArgs args){ if (args.ButtonIndex > 1) { return; } Email(args.ButtonIndex == 0 ? "png" : "pdf"); }; actionSheet.ShowInView(View); }); var scrollView = new GraphScrollView(exampleInfo, new RectangleF(new PointF(0, 0), new SizeF(UIScreen.MainScreen.ApplicationFrame.Size.Width, UIScreen.MainScreen.ApplicationFrame.Height - UIScreen.MainScreen.ApplicationFrame.Top - 10))); View = scrollView; }
public override void LoadView () { NavigationItem.RightBarButtonItem= new UIBarButtonItem(UIBarButtonSystemItem.Compose, delegate { var actionSheet = new UIActionSheet ("Email", null, "Cancel", "PNG", "PDF"){ Style = UIActionSheetStyle.Default }; actionSheet.Clicked += delegate (object sender, UIButtonEventArgs args){ if(args.ButtonIndex > 1) return; Email(args.ButtonIndex == 0 ? "png" : "pdf"); }; actionSheet.ShowInView (View); }); var scrollView = new GraphScrollView(exampleInfo, new RectangleF(new PointF(0, 0), new SizeF(UIScreen.MainScreen.ApplicationFrame.Size.Width, UIScreen.MainScreen.ApplicationFrame.Height - UIScreen.MainScreen.ApplicationFrame.Top - 10))); View = scrollView; }