14 implementations of IVisualElementRenderer
Microsoft.Maui.Controls.Compatibility (14)
Android\AppCompat\CheckBoxRendererBase.cs (1)
24 IVisualElementRenderer,
Android\AppCompat\FlyoutPageRenderer.cs (1)
22 public class FlyoutPageRenderer : DrawerLayout, IVisualElementRenderer, DrawerLayout.IDrawerListener, IManageFragments, ILifeCycleState
Android\AppCompat\ImageButtonRenderer.cs (1)
22 IVisualElementRenderer,
Android\AppCompat\RadioButtonRenderer.cs (1)
22 IBorderVisualElementRenderer, IVisualElementRenderer, IViewRenderer, ITabStop,
Android\CollectionView\IndicatorViewRenderer.cs (1)
19 public class IndicatorViewRenderer : LinearLayout, IVisualElementRenderer, IViewRenderer, ITabStop
Android\CollectionView\ItemsViewRenderer.cs (1)
17 public abstract class ItemsViewRenderer<TItemsView, TAdapter, TItemsViewSource> : RecyclerView, IVisualElementRenderer, IEffectControlProvider
Android\FastRenderers\ButtonRenderer.cs (1)
19 IBorderVisualElementRenderer, IButtonLayoutRenderer, IVisualElementRenderer, IViewRenderer, ITabStop,
Android\FastRenderers\FrameRenderer.cs (1)
18 public class FrameRenderer : CardView, IVisualElementRenderer, IViewRenderer, ITabStop
Android\FastRenderers\ImageRenderer.cs (1)
16 public class ImageRenderer : AImageView, IVisualElementRenderer, IImageRendererController, IViewRenderer, ITabStop,
Android\FastRenderers\LabelRenderer.cs (1)
18 public class LabelRenderer : FormsTextView, IVisualElementRenderer, IViewRenderer, ITabStop
Android\HandlerToRendererShim.cs (1)
12 public class HandlerToRendererShim : IVisualElementRenderer
Android\Renderers\RefreshViewRenderer.cs (1)
20 public class RefreshViewRenderer : SwipeRefreshLayout, IVisualElementRenderer, IEffectControlProvider, SwipeRefreshLayout.IOnRefreshListener
Android\Renderers\ScrollViewRenderer.cs (1)
19 public class ScrollViewRenderer : NestedScrollView, IVisualElementRenderer, IEffectControlProvider, IScrollView
Android\VisualElementRenderer.cs (1)
20 public abstract class VisualElementRenderer<TElement> : Microsoft.Maui.MauiViewGroup, IVisualElementRenderer, IDisposedState,
214 references to IVisualElementRenderer
Microsoft.Maui.Controls.Compatibility (214)
Android\AppCompat\ButtonRenderer.cs (4)
212 add => ((IVisualElementRenderer)this).ElementChanged += value; 213 remove => ((IVisualElementRenderer)this).ElementChanged -= value; 218 add => ((IVisualElementRenderer)this).ElementChanged += value; 219 remove => ((IVisualElementRenderer)this).ElementChanged -= value;
Android\AppCompat\CarouselPageRenderer.cs (2)
37 ViewGroup ViewGroup => ((IVisualElementRenderer)this).View as ViewGroup; 84 IVisualElementRenderer pageRenderer = Platform.GetRenderer(pageToRemove);
Android\AppCompat\CheckBoxRendererBase.cs (6)
88 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 98 void IVisualElementRenderer.SetElement(VisualElement element) 250 void IVisualElementRenderer.UpdateLayout() => _tracker?.UpdateLayout(); 251 VisualElement IVisualElementRenderer.Element => Element; 252 AView IVisualElementRenderer.View => this; 253 VisualElementTracker IVisualElementRenderer.Tracker => _tracker;
Android\AppCompat\FlyoutPageContainer.cs (4)
55 IVisualElementRenderer renderer = APlatform.GetRenderer(_childView); 134 IVisualElementRenderer renderer = APlatform.GetRenderer(childView); 265 IVisualElementRenderer childRenderer = APlatform.GetRenderer(_childView); 297 protected void SetDefaultBackgroundColor(IVisualElementRenderer renderer)
Android\AppCompat\FlyoutPageRenderer.cs (9)
96 VisualElement IVisualElementRenderer.Element => Element; 98 event EventHandler<VisualElementChangedEventArgs> IVisualElementRenderer.ElementChanged 104 event EventHandler<PropertyChangedEventArgs> IVisualElementRenderer.ElementPropertyChanged 110 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 116 void IVisualElementRenderer.SetElement(VisualElement element) 204 void IVisualElementRenderer.SetLabelFor(int? id) => LabelFor = id ?? LabelFor; 206 VisualElementTracker IVisualElementRenderer.Tracker => _tracker; 208 void IVisualElementRenderer.UpdateLayout() 213 AView IVisualElementRenderer.View => this;
Android\AppCompat\FragmentContainer.cs (2)
20 IVisualElementRenderer _visualElementRenderer; 50 protected virtual PageContainer CreatePageContainer(Context context, IVisualElementRenderer child, bool inFragment)
Android\AppCompat\ImageButtonRenderer.cs (7)
45 void IVisualElementRenderer.UpdateLayout() => _tracker?.UpdateLayout(); 46 VisualElement IVisualElementRenderer.Element => Element; 47 AView IVisualElementRenderer.View => this; 48 VisualElementTracker IVisualElementRenderer.Tracker => _tracker; 142 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 152 void IVisualElementRenderer.SetElement(VisualElement element) 256 void IVisualElementRenderer.SetLabelFor(int? id)
Android\AppCompat\NavigationPageRenderer.cs (4)
56 IVisualElementRenderer _titleViewRenderer; 286 IVisualElementRenderer renderer = Platform.GetRenderer(child); 1139 IVisualElementRenderer _child; 1150 public IVisualElementRenderer Child
Android\AppCompat\Platform.cs (25)
36 internal static readonly BindableProperty RendererProperty = BindableProperty.CreateAttached("Renderer", typeof(IVisualElementRenderer), typeof(Platform), default(IVisualElementRenderer), 45 if (mauiView.Handler == null && newvalue is IVisualElementRenderer ver) 143 IVisualElementRenderer modalRenderer = GetRenderer(modal); 224 IVisualElementRenderer visualElementRenderer, 265 IVisualElementRenderer visualElementRenderer = GetRenderer(view); 295 var element = (renderedView as IVisualElementRenderer)?.Element; 299 var renderer = GetRenderer(view); 305 var layout = view as IVisualElementRenderer; 310 internal static IVisualElementRenderer CreateRenderer( 316 IVisualElementRenderer renderer = null; 359 renderer = Registrar.Registered.GetHandlerForObject<IVisualElementRenderer>(element, context) 371 renderer = Registrar.Registered.GetHandlerForObject<IVisualElementRenderer>(element, context) 375 else if (handler is IVisualElementRenderer ver) 396 public static IVisualElementRenderer CreateRendererWithContext(VisualElement element, Context context) 403 public static IVisualElementRenderer GetRenderer(VisualElement bindable) 405 return (IVisualElementRenderer)bindable?.GetValue(RendererProperty); 408 public static void SetRenderer(VisualElement bindable, IVisualElementRenderer value) 474 var renderersToDispose = new List<IVisualElementRenderer>(); 495 var pageRenderer = GetRenderer(page); 539 void Cleanup(List<AView> viewsToRemove, List<IVisualElementRenderer> renderersToDispose) 561 IVisualElementRenderer rootRenderer = renderersToDispose[i]; 576 IVisualElementRenderer renderView = CreateRenderer(page, _context); 639 IVisualElementRenderer _renderer;
Android\AppCompat\RadioButtonRenderer.cs (7)
51 VisualElement IVisualElementRenderer.Element => Element; 52 AView IVisualElementRenderer.View => this; 53 VisualElementTracker IVisualElementRenderer.Tracker => _tracker; 63 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 69 void IVisualElementRenderer.SetElement(VisualElement element) 110 void IVisualElementRenderer.SetLabelFor(int? id) 120 void IVisualElementRenderer.UpdateLayout() => _tracker?.UpdateLayout();
Android\AppCompat\TabbedPageRenderer.cs (4)
211 IVisualElementRenderer pageRenderer = Platform.GetRenderer(pageToRemove); 366 IVisualElementRenderer renderer = Platform.GetRenderer(child); 598 IVisualElementRenderer leftRenderer = Platform.GetRenderer(leftPage); 614 IVisualElementRenderer rightRenderer = Platform.GetRenderer(rightPage);
Android\BackgroundManager.cs (8)
12 public static void Init(IVisualElementRenderer renderer) 20 public static void Dispose(IVisualElementRenderer renderer) 65 var renderer = sender as IVisualElementRenderer; 79 var renderer = (sender as IVisualElementRenderer); 84 var renderer = (sender as IVisualElementRenderer);
Android\ButtonLayoutManager.cs (1)
349 if (_renderer is IVisualElementRenderer visualElementRenderer)
Android\Cells\ViewCellRenderer.cs (5)
46 IVisualElementRenderer view = Platform.CreateRenderer(cell.View, context); 62 IVisualElementRenderer _view; 124 public ViewCellContainer(Context context, IVisualElementRenderer view, ViewCell viewCell, View parent, 185 var renderer = GetChildAt(0) as IVisualElementRenderer;
Android\CollectionView\IndicatorViewRenderer.cs (5)
59 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 65 void IVisualElementRenderer.UpdateLayout() 70 void IVisualElementRenderer.SetElement(VisualElement element) 92 void IVisualElementRenderer.SetLabelFor(int? id) 299 var renderer = indicatorLayout.GetRenderer() ?? Platform.CreateRendererWithContext(indicatorLayout, Context);
Android\CollectionView\ItemContentView.cs (4)
11 protected IVisualElementRenderer Content; 44 internal IVisualElementRenderer VisualElementRenderer => Content; 127 static IVisualElementRenderer CreateRenderer(View view, Context context) 129 var renderer = Platform.CreateRenderer(view, context);
Android\CollectionView\ItemsViewRenderer.cs (4)
85 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 91 void IVisualElementRenderer.SetElement(VisualElement element) 115 void IVisualElementRenderer.SetLabelFor(int? id) 128 void IVisualElementRenderer.UpdateLayout()
Android\DragAndDropGestureHandler.cs (3)
115 IVisualElementRenderer dragSourceRenderer = localStateData?.SourceNativeView as IVisualElementRenderer; 256 var renderer = Platform.GetRenderer(element);
Android\Extensions\AccessibilityExtensions.cs (1)
75 var renderer = elemValue?.GetRenderer();
Android\FastRenderers\AutomationPropertiesProvider.cs (2)
16 IVisualElementRenderer _renderer; 18 public AutomationPropertiesProvider(IVisualElementRenderer renderer)
Android\FastRenderers\ButtonRenderer.cs (7)
50 VisualElement IVisualElementRenderer.Element => Element; 51 AView IVisualElementRenderer.View => this; 52 VisualElementTracker IVisualElementRenderer.Tracker => _tracker; 82 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 105 void IVisualElementRenderer.SetElement(VisualElement element) 129 void IVisualElementRenderer.SetLabelFor(int? id) 139 void IVisualElementRenderer.UpdateLayout() => _tracker?.UpdateLayout();
Android\FastRenderers\FrameRenderer.cs (8)
66 VisualElement IVisualElementRenderer.Element => Element; 67 AView IVisualElementRenderer.View => this; 69 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthMeasureSpec, int heightMeasureSpec) 75 void IVisualElementRenderer.SetElement(VisualElement element) 87 void IVisualElementRenderer.SetLabelFor(int? id) 95 VisualElementTracker IVisualElementRenderer.Tracker => _visualElementTracker; 97 void IVisualElementRenderer.UpdateLayout() 208 IVisualElementRenderer renderer = Platform.GetRenderer(visualElement);
Android\FastRenderers\ImageElementManager.cs (8)
16 public static void Init(IVisualElementRenderer renderer) 27 if (sender is IVisualElementRenderer renderer && renderer.View is ImageView imageView) 34 public static void Dispose(IVisualElementRenderer renderer) 53 var renderer = (sender as IVisualElementRenderer); 77 var renderer = (sender as IVisualElementRenderer); 101 IVisualElementRenderer renderer,
Android\FastRenderers\ImageRenderer.cs (8)
114 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 125 void IVisualElementRenderer.SetElement(VisualElement element) 163 void IVisualElementRenderer.SetLabelFor(int? id) 171 void IVisualElementRenderer.UpdateLayout() => _visualElementTracker?.UpdateLayout(); 175 ViewRenderer.MeasureExactly(this, ((IVisualElementRenderer)this).Element, Context); 178 VisualElement IVisualElementRenderer.Element => _element; 180 VisualElementTracker IVisualElementRenderer.Tracker => _visualElementTracker; 182 AView IVisualElementRenderer.View => this;
Android\FastRenderers\LabelRenderer.cs (7)
50 VisualElement IVisualElementRenderer.Element => Element; 52 VisualElementTracker IVisualElementRenderer.Tracker => _visualElementTracker; 54 AView IVisualElementRenderer.View => this; 76 SizeRequest IVisualElementRenderer.GetDesiredSize(int widthConstraint, int heightConstraint) 151 void IVisualElementRenderer.SetElement(VisualElement element) 161 void IVisualElementRenderer.SetLabelFor(int? id) 169 void IVisualElementRenderer.UpdateLayout()
Android\FastRenderers\VisualElementRenderer.cs (2)
14 IVisualElementRenderer _renderer; 18 public VisualElementRenderer(IVisualElementRenderer renderer)
Android\PopupManager.cs (1)
265 var renderer = Platform.GetRenderer(page);
Android\RendererPool.cs (11)
11 readonly Dictionary<Type, Stack<IVisualElementRenderer>> _freeRenderers = new Dictionary<Type, Stack<IVisualElementRenderer>>(); 15 readonly IVisualElementRenderer _parent; 17 public RendererPool(IVisualElementRenderer renderer, VisualElement oldElement) 36 public IVisualElementRenderer GetFreeRenderer(VisualElement view) 43 Stack<IVisualElementRenderer> renderers; 47 IVisualElementRenderer renderer = renderers.Pop(); 63 IVisualElementRenderer renderer = Platform.GetRenderer(child); 88 void PushRenderer(IVisualElementRenderer renderer) 93 Stack<IVisualElementRenderer> renderers; 95 _freeRenderers[rendererType] = renderers = new Stack<IVisualElementRenderer>();
Android\Renderers\CarouselPageAdapter.cs (3)
60 IVisualElementRenderer renderer = Platform.GetRenderer(destroyedPage); 95 IVisualElementRenderer renderer = Platform.GetRenderer(child); 133 IVisualElementRenderer childPageRenderer = Platform.GetRenderer(childPage);
Android\Renderers\ListViewAdapter.cs (1)
519 var renderer = Platform.GetRenderer(view);
Android\Renderers\ListViewRenderer.cs (4)
23 IVisualElementRenderer _headerRenderer; 24 IVisualElementRenderer _footerRenderer; 502 IVisualElementRenderer _child; 513 public IVisualElementRenderer Child
Android\Renderers\PageContainer.cs (2)
16 public PageContainer(Context context, IVisualElementRenderer child, bool inFragment = false) : base(context) 24 public IVisualElementRenderer Child { get; set; }
Android\Renderers\RefreshViewRenderer.cs (2)
25 IVisualElementRenderer _renderer; 75 IVisualElementRenderer renderer = Platform.GetRenderer(refreshViewContent);
Android\Renderers\ScrollViewContainer.cs (2)
35 IVisualElementRenderer renderer; 71 IVisualElementRenderer renderer = Platform.GetRenderer(_childView);
Android\Renderers\ScrollViewRenderer.cs (3)
58 event EventHandler<PropertyChangedEventArgs> IVisualElementRenderer.ElementPropertyChanged 143 AView IVisualElementRenderer.View => this; 465 void IVisualElementRenderer.SetLabelFor(int? id)
Android\Renderers\SwipeViewRenderer.cs (2)
383 var renderer = Element.Content.GetRenderer() ?? Platform.CreateRendererWithContext(Element.Content, Context); 855 var renderer = Platform.CreateRenderer(swipeItemView, _context);
Android\ResourceManager.cs (3)
194 static bool IsDrawableSourceValid(this IVisualElementRenderer renderer, BindableObject bindable, out BindableObject element) 206 internal static Task ApplyDrawableAsync(this IVisualElementRenderer renderer, 217 internal static async Task ApplyDrawableAsync(this IVisualElementRenderer renderer,
Android\VisualElementExtensions.cs (3)
10 public static IVisualElementRenderer GetRenderer(this VisualElement self) 15 IVisualElementRenderer renderer = Platform.GetRenderer(self); 31 var elementRenderer = Element.GetRenderer();
Android\VisualElementPackager.cs (12)
17 List<IVisualElementRenderer> _childViews; 23 IVisualElementRenderer _renderer; 29 public VisualElementPackager(IVisualElementRenderer renderer, VisualElement element = null) 117 void AddChild(VisualElement view, IVisualElementRenderer oldRenderer = null, RendererPool pool = null, bool sameChildren = false) 134 _childViews = new List<IVisualElementRenderer>(); 136 IVisualElementRenderer renderer = oldRenderer; 179 IVisualElementRenderer r = Platform.GetRenderer(element); 221 IVisualElementRenderer lastRenderer = null; 222 IVisualElementRenderer previousRenderer = null; 251 IVisualElementRenderer renderer = Platform.GetRenderer(view); 324 _childViews = new List<IVisualElementRenderer>(); 343 IVisualElementRenderer oldRenderer = null;
Android\VisualElementRenderer.cs (6)
99 VisualElement IVisualElementRenderer.Element => Element; 101 event EventHandler<VisualElementChangedEventArgs> IVisualElementRenderer.ElementChanged 113 void IVisualElementRenderer.SetElement(VisualElement element) 130 AView IVisualElementRenderer.View => this; 324 IVisualElementRenderer renderer = Platform.GetRenderer(visualElement); 406 void IVisualElementRenderer.SetLabelFor(int? id)
Android\VisualElementTracker.cs (4)
28 IVisualElementRenderer _renderer; 30 public VisualElementTracker(IVisualElementRenderer renderer) 453 var renderer = attachedView as IVisualElementRenderer;
RendererToHandlerShim.Android.cs (3)
22 IVisualElementRenderer CreateRenderer(IView view) 26 var renderer = Internals.Registrar.Registered.GetHandlerForObject<IVisualElementRenderer>(view, Context)
RendererToHandlerShim.cs (5)
10using IVisualElementRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Android.IVisualElementRenderer; 74 internal IVisualElementRenderer? VisualElementRenderer { get; private set; } 82 if (renderer is IVisualElementRenderer ivr) 88 public RendererToHandlerShim(IVisualElementRenderer visualElementRenderer) : this() 94 public void SetupRenderer(IVisualElementRenderer visualElementRenderer)