public void PresentFromRect() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popOver = new UIPopoverController(_controller); popOver.PresentFromRect(new CGRect(), new UIView(), UIPopoverArrowDirection.Any, true); }
public void NewObjectDispose() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var obj = new UIPopoverController(_controller); obj.Dispose(); }
public void SetContentViewController() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popover = new UIPopoverController(new UIViewController()); popover.SetContentViewController(_controller, false); Assert.IsNotNull(popover.ContentViewController); }
public void ObjectSame() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var a = new UIPopoverController(_controller); var b = Runtime.GetNSObject<UIPopoverController>(a.Handle); Assert.AreSame(a, b); }
public void NewObject() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var obj = new UIPopoverController(_controller); Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle); Assert.AreNotEqual(IntPtr.Zero, obj.Handle); }
public void Dismiss() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popover = new UIPopoverController(_controller); popover.Dismiss(true); }
public void SetPopoverContentSize() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popover = new UIPopoverController(_controller); popover.SetPopoverContentSize(new CGSize(100, 120), true); Assert.AreEqual(100, popover.PopoverContentSize.Width); Assert.AreEqual(120, popover.PopoverContentSize.Height); }
public void PopoverVisible() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popover = new UIPopoverController(_controller); Assert.IsFalse(popover.PopoverVisible); }
public void PopoverArrowDirection() { if (_device != UIUserInterfaceIdiom.Pad) { Assert.Inconclusive("Not running on iPad!"); return; } var popover = new UIPopoverController(_controller); Assert.AreEqual(UIPopoverArrowDirection.Unknown, popover.PopoverArrowDirection); }