10 implementations of ViewController
Microsoft.Maui.Controls.Compatibility (10)
iOS\HandlerToRendererShim.cs (1)
25 public UIViewController ViewController => ViewHandler.ViewController;
iOS\Renderers\CarouselPageRenderer.cs (1)
82 public UIViewController ViewController
iOS\Renderers\NavigationRenderer.cs (1)
95 public UIViewController ViewController
iOS\Renderers\PageRenderer.cs (1)
152 public UIViewController ViewController => _disposed ? null : this;
iOS\Renderers\PhoneFlyoutPageRenderer.cs (1)
106 public UIViewController ViewController
iOS\Renderers\ScrollViewRenderer.cs (1)
124 public UIViewController ViewController
iOS\Renderers\TabbedRenderer.cs (1)
104 public UIViewController ViewController
iOS\Renderers\TabletFlyoutPageRenderer.cs (1)
235 public UIViewController ViewController
iOS\Renderers\WkWebViewRenderer.cs (1)
931 public UIViewController ViewController
iOS\VisualElementRenderer.cs (1)
171 public virtual NativeViewController ViewController => null;
44 references to ViewController
Microsoft.Maui.Controls.Compatibility (44)
iOS\ContextActionCell.cs (2)
404 if (renderer.ViewController != null) 405 return renderer.ViewController;
iOS\DisposeHelpers.cs (2)
37 if (renderer.ViewController != null) 39 if (renderer.ViewController.ParentViewController is ModalWrapper modalWrapper)
iOS\Platform.cs (2)
405 if (viewRenderer.ViewController != null) 406 _renderer.AddChildViewController(viewRenderer.ViewController);
iOS\Renderers\CarouselPageRenderer.cs (3)
235 renderer.ViewController.RemoveFromParentViewController(); 259 AddChildViewController(renderer.ViewController); 336 renderer.ViewController.RemoveFromParentViewController();
iOS\Renderers\NavigationRenderer.cs (13)
314 if (renderer == null || renderer.ViewController == null) 334 if (renderer == null || renderer.ViewController == null) 393 pack.View.AddSubview(pageRenderer.ViewController.View); 394 pack.AddChildViewController(pageRenderer.ViewController); 395 pageRenderer.ViewController.DidMoveToParentViewController(pack); 422 var parentViewController = Platform.GetRenderer(page).ViewController.ParentViewController as ParentingViewController; 576 var target = Platform.GetRenderer(before).ViewController.ParentViewController; 617 var target = Platform.GetRenderer(page).ViewController.ParentViewController; 1458 return childRenderer.ViewController.GetSupportedInterfaceOrientations(); 1466 return childRenderer.ViewController.PreferredInterfaceOrientationForPresentation(); 1474 return childRenderer.ViewController.ShouldAutorotate(); 1483 return childRenderer.ViewController.ShouldAutorotateToInterfaceOrientation(toInterfaceOrientation); 1504 return Platform.GetRenderer(Current)?.ViewController ??
iOS\Renderers\PhoneFlyoutPageRenderer.cs (8)
268 var detailView = detailRenderer.ViewController.View; 378 _flyoutController.AddChildViewController(flyoutRenderer.ViewController); 383 _detailController.AddChildViewController(detailRenderer.ViewController); 389 if (detailRenderer.ViewController.View.Superview != null) 390 detailRenderer.ViewController.View.Superview.BackgroundColor = Microsoft.Maui.Graphics.Colors.Black.ToPlatform(); 418 return Platform.GetRenderer(((FlyoutPage)Element).Detail).ViewController; 428 return Platform.GetRenderer(((FlyoutPage)Element).Detail).ViewController; 553 var detailView = Platform.GetRenderer(FlyoutPage.Detail).ViewController.View;
iOS\Renderers\TabbedRenderer.cs (4)
184 return renderer.ViewController; 203 if (renderer?.ViewController.TabBarItem == null) 322 list.Add(Platform.GetRenderer(v).ViewController); 473 renderer.ViewController.TabBarItem = new UITabBarItem(page.Title, icons?.Item1, icons?.Item2)
iOS\Renderers\TabletFlyoutPageRenderer.cs (2)
537 var flyout = Platform.GetRenderer(FlyoutPage.Flyout).ViewController; 538 var detail = Platform.GetRenderer(FlyoutPage.Detail).ViewController;
iOS\VisualElementPackager.cs (7)
123 if (Renderer.ViewController != null && viewRenderer.ViewController != null) 124 Renderer.ViewController.AddChildViewController(viewRenderer.ViewController); 140 if (Renderer.ViewController != null && viewRenderer.ViewController != null) 141 viewRenderer.ViewController.RemoveFromParentViewController();
RendererToHandlerShim.iOS.cs (1)
19 UIViewController? IPlatformViewHandler.ViewController => VisualElementRenderer?.ViewController;