1 instantiation of Platform
Microsoft.Maui.Controls.Compatibility (1)
iOS\PageExtensions.cs (1)
22 var result = new Platform.iOS.Platform();
120 references to Platform
Microsoft.Maui.Controls.Compatibility (120)
AppHostBuilderExtensions.cs (2)
34using RadioButtonRenderer = Microsoft.Maui.Controls.Compatibility.Platform.iOS.Platform.DefaultRenderer; 35using DefaultRenderer = Microsoft.Maui.Controls.Compatibility.Platform.iOS.Platform.DefaultRenderer;
iOS\Cells\ViewCellRenderer.cs (5)
169 var newRenderer = Platform.CreateRenderer(_viewCell.View); 196 if (renderer.Element != null && renderer == Platform.GetRenderer(renderer.Element)) 197 renderer.Element.ClearValue(Platform.RendererProperty); 202 if (rendererType == type || (renderer is Platform.DefaultRenderer && type == null)) 214 Platform.SetRenderer(_viewCell.View, renderer);
iOS\CollectionView\ItemsViewController.cs (1)
418 Platform.GetRenderer(formsElement)?.DisposeRendererAndChildren();
iOS\CollectionView\TemplateHelpers.cs (3)
18 Platform.GetRenderer(view)?.DisposeRendererAndChildren(); 19 var renderer = Platform.CreateRenderer(view); 20 Platform.SetRenderer(view, renderer);
iOS\ContextActionCell.cs (1)
403 var renderer = Platform.GetRenderer((VisualElement)e.RealParent);
iOS\DisposeHelpers.cs (6)
20 renderer = Platform.GetRenderer(ve); 21 child.ClearValue(Platform.RendererProperty); 33 renderer = Platform.GetRenderer(visualElement); 46 view.ClearValue(Platform.RendererProperty); 55 if (rendererToRemove.Element != null && Platform.GetRenderer(rendererToRemove.Element) == rendererToRemove) 56 rendererToRemove.Element.ClearValue(Platform.RendererProperty);
iOS\Extensions\VisualElementExtensions.cs (1)
15 return Platform.GetRenderer(self);
iOS\PageExtensions.cs (1)
22 var result = new Platform.iOS.Platform();
iOS\Platform.cs (2)
23 internal static readonly BindableProperty RendererProperty = BindableProperty.CreateAttached("Renderer", typeof(IVisualElementRenderer), typeof(Platform), default(IVisualElementRenderer), 225 Application.Current?.FindMauiContext()?.CreateLogger<Platform>()?.LogWarning(
iOS\PlatformRenderer.cs (4)
14 internal PlatformRenderer(Platform platform) 19 public Platform Platform { get; set; } 41 return (UIViewController)Platform.GetRenderer(Platform.Page); 51 get => (UIViewController)Platform.GetRenderer(Platform.Page);
iOS\RendererPool.cs (7)
99 if (childRenderer.Element != null && ReferenceEquals(childRenderer, Platform.GetRenderer(childRenderer.Element))) 100 childRenderer.Element.ClearValue(Platform.RendererProperty); 121 var renderer = GetFreeRenderer(child) ?? Platform.CreateRenderer(child); 122 Platform.SetRenderer(child, renderer); 160 if (childRenderer.Element != null && ReferenceEquals(childRenderer, Platform.GetRenderer(childRenderer.Element))) 161 childRenderer.Element.ClearValue(Platform.RendererProperty); 164 Platform.SetRenderer(element, childRenderer);
iOS\Renderers\CarouselPageRenderer.cs (7)
190 Platform.SetRenderer(Element, null); 232 IVisualElementRenderer renderer = Platform.GetRenderer(kvp.Key); 237 Platform.SetRenderer(kvp.Key, null); 245 IVisualElementRenderer renderer = Platform.GetRenderer(page); 248 renderer = Platform.CreateRenderer(page); 249 Platform.SetRenderer(page, renderer); 332 IVisualElementRenderer renderer = Platform.GetRenderer(page);
iOS\Renderers\ListViewRenderer.cs (11)
494 _footerRenderer = Platform.CreateRenderer(footerView); 495 Platform.SetRenderer(footerView, _footerRenderer); 539 _headerRenderer = Platform.CreateRenderer(headerView); 541 Platform.SetRenderer(headerView, _headerRenderer); 948 _prototype = Platform.CreateRenderer(target); 952 Platform.SetRenderer(target, _prototype); 956 target.ClearValue(Platform.RendererProperty); 959 IVisualElementRenderer renderer = Platform.GetRenderer(descendant as VisualElement); 963 descendant.ClearValue(Platform.RendererProperty); 999 element?.ClearValue(Platform.RendererProperty); 1499 var renderer = Platform.GetRenderer(activityIndicator) as ActivityIndicatorRenderer;
iOS\Renderers\NavigationRenderer.cs (18)
313 var renderer = Platform.GetRenderer(page); 333 var renderer = Platform.GetRenderer(page); 383 if (Platform.GetRenderer(page) == null) 384 Platform.SetRenderer(page, Platform.CreateRenderer(page)); 392 var pageRenderer = Platform.GetRenderer(page); 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; 646 if (controller == null || controller.Child == null || Platform.GetRenderer(controller.Child) == null) 1084 if (Child != null && (childRenderer = Platform.GetRenderer(Child)) != null) 1457 if (Child != null && (childRenderer = Platform.GetRenderer(Child)) != null) 1465 if (Child != null && (childRenderer = Platform.GetRenderer(Child)) != null) 1473 if (Child != null && (childRenderer = Platform.GetRenderer(Child)) != null) 1482 if (Child != null && (childRenderer = Platform.GetRenderer(Child)) != null) 1504 return Platform.GetRenderer(Current)?.ViewController ?? 1602 _child = Platform.CreateRenderer(view); 1603 Platform.SetRenderer(view, _child);
iOS\Renderers\PageRenderer.cs (1)
231 Platform.SetRenderer(Element, null);
iOS\Renderers\PhoneFlyoutPageRenderer.cs (13)
265 var detailRenderer = Platform.GetRenderer(FlyoutPage.Detail); 365 if (Platform.GetRenderer(((FlyoutPage)Element).Flyout) == null) 366 Platform.SetRenderer(((FlyoutPage)Element).Flyout, Platform.CreateRenderer(((FlyoutPage)Element).Flyout)); 367 if (Platform.GetRenderer(((FlyoutPage)Element).Detail) == null) 368 Platform.SetRenderer(((FlyoutPage)Element).Detail, Platform.CreateRenderer(((FlyoutPage)Element).Detail)); 370 var flyoutRenderer = Platform.GetRenderer(((FlyoutPage)Element).Flyout); 371 var detailRenderer = Platform.GetRenderer(((FlyoutPage)Element).Detail); 401 var detailRenderer = Platform.GetRenderer(FlyoutPage.Detail) as UINavigationController; 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\ScrollViewRenderer.cs (1)
181 Element?.ClearValue(Platform.RendererProperty);
iOS\Renderers\SwipeViewRenderer.cs (2)
624 var renderer = Platform.CreateRenderer(formsSwipeItemView); 625 Platform.SetRenderer(formsSwipeItemView, renderer);
iOS\Renderers\TabbedRenderer.cs (8)
180 var renderer = Platform.GetRenderer(page); 201 IVisualElementRenderer renderer = Platform.GetRenderer(page); 321 if (Platform.GetRenderer(v) != null) 322 list.Add(Platform.GetRenderer(v).ViewController); 329 IVisualElementRenderer renderer = Platform.GetRenderer(page); 332 renderer = Platform.CreateRenderer(page); 333 Platform.SetRenderer(page, renderer); 345 Platform.SetRenderer(page, null);
iOS\Renderers\TabletFlyoutPageRenderer.cs (10)
386 return (UIViewController)Platform.GetRenderer(((FlyoutPage)Element).Detail); 396 return (UIViewController)Platform.GetRenderer(((FlyoutPage)Element).Detail); 528 if (Platform.GetRenderer(FlyoutPage.Flyout) == null) 529 Platform.SetRenderer(FlyoutPage.Flyout, Platform.CreateRenderer(FlyoutPage.Flyout)); 530 if (Platform.GetRenderer(FlyoutPage.Detail) == null) 531 Platform.SetRenderer(FlyoutPage.Detail, Platform.CreateRenderer(FlyoutPage.Detail)); 537 var flyout = Platform.GetRenderer(FlyoutPage.Flyout).ViewController; 538 var detail = Platform.GetRenderer(FlyoutPage.Detail).ViewController;
iOS\Renderers\UIContainerCell.cs (4)
24 _renderer = Platform.GetRenderer(view); 28 _renderer = Platform.CreateRenderer(view); 29 Platform.SetRenderer(view, _renderer); 69 Platform.SetRenderer(View, null);
iOS\Renderers\UIContainerView.cs (3)
21 _renderer = Platform.CreateRenderer(view); 22 Platform.SetRenderer(view, _renderer); 112 _view.ClearValue(Platform.RendererProperty);
iOS\Renderers\WkWebViewRenderer.cs (1)
288 Element?.ClearValue(Platform.RendererProperty);
iOS\VisualElementPackager.cs (5)
85 var childRenderer = Platform.GetRenderer(child); 117 var viewRenderer = Platform.CreateRenderer(view); 118 Platform.SetRenderer(view, viewRenderer); 134 var viewRenderer = Platform.GetRenderer(view); 156 var childRenderer = Platform.GetRenderer(child);
iOS\VisualElementRenderer.cs (1)
309 Element.ClearValue(Platform.RendererProperty);
RendererToHandlerShim.cs (1)
15using static Microsoft.Maui.Controls.Compatibility.Platform.iOS.Platform;
RendererToHandlerShim.iOS.cs (1)
10using static Microsoft.Maui.Controls.Compatibility.Platform.iOS.Platform;