14 implementations of Element
Microsoft.Maui.Controls.Compatibility (14)
Android\AppCompat\CheckBoxRendererBase.cs (1)
251 VisualElement IVisualElementRenderer.Element => Element;
Android\AppCompat\FlyoutPageRenderer.cs (1)
96 VisualElement IVisualElementRenderer.Element => Element;
Android\AppCompat\ImageButtonRenderer.cs (1)
46 VisualElement IVisualElementRenderer.Element => Element;
Android\AppCompat\RadioButtonRenderer.cs (1)
51 VisualElement IVisualElementRenderer.Element => Element;
Android\CollectionView\IndicatorViewRenderer.cs (1)
43 public VisualElement Element => IndicatorView;
Android\CollectionView\ItemsViewRenderer.cs (1)
79 public VisualElement Element => ItemsView;
Android\FastRenderers\ButtonRenderer.cs (1)
50 VisualElement IVisualElementRenderer.Element => Element;
Android\FastRenderers\FrameRenderer.cs (1)
66 VisualElement IVisualElementRenderer.Element => Element;
Android\FastRenderers\ImageRenderer.cs (1)
178 VisualElement IVisualElementRenderer.Element => _element;
Android\FastRenderers\LabelRenderer.cs (1)
50 VisualElement IVisualElementRenderer.Element => Element;
Android\HandlerToRendererShim.cs (1)
24 public VisualElement Element { get; private set; }
Android\Renderers\RefreshViewRenderer.cs (1)
43 public VisualElement Element { get; private set; }
Android\Renderers\ScrollViewRenderer.cs (1)
50 public VisualElement Element
Android\VisualElementRenderer.cs (1)
99 VisualElement IVisualElementRenderer.Element => Element;
65 references to Element
Microsoft.Maui.Controls.Compatibility (65)
Android\AppCompat\NavigationPageRenderer.cs (4)
422 Page childPage = (child as PageContainer)?.Child?.Element as Page; 1180 VisualElement element = _child.Element; 1186 SizeRequest request = _child.Element.Measure(width, double.PositiveInfinity, MeasureFlags.IncludeMargins); 1187 Microsoft.Maui.Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(_child.Element, new Graphics.Rect(0, 0, width, request.Request.Height));
Android\AppCompat\Platform.cs (2)
295 var element = (renderedView as IVisualElementRenderer)?.Element; 562 rootRenderer?.Element.ClearValue(RendererProperty);
Android\BackgroundManager.cs (6)
27 if (renderer.Element != null) 29 renderer.Element.PropertyChanged -= OnElementPropertyChanged; 67 UpdateBackgroundColor(renderer?.View, renderer?.Element); 68 UpdateBackground(renderer?.View, renderer?.Element); 80 UpdateBackgroundColor(renderer?.View, renderer?.Element); 85 UpdateBackground(renderer?.View, renderer?.Element);
Android\Cells\ViewCellRenderer.cs (4)
259 Microsoft.Maui.Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(_view.Element, new Rect(0, 0, width, height)); 275 SizeRequest measure = _view.Element.Measure(Context.FromPixels(width), double.PositiveInfinity, MeasureFlags.IncludeMargins); 288 if (!(_view.Element is SwipeView swipeView)) 305 var vw = _view.Element as Microsoft.Maui.Controls.View;
Android\CollectionView\CarouselViewRenderer.cs (1)
409 if (!((cell as ItemContentView)?.VisualElementRenderer?.Element is View itemView))
Android\CollectionView\ItemContentView.cs (6)
12 internal Element Element => Content?.Element; 29 Content.Element.MeasureInvalidated += ElementMeasureInvalidated; 48 if (Content?.Element != null) 50 Content.Element.MeasureInvalidated -= ElementMeasureInvalidated; 78 Content.Element.Layout(new Rect(Point.Zero, size)); 109 SizeRequest measure = Content.Element.Measure(width, height, MeasureFlags.IncludeMargins);
Android\CollectionView\SizedItemContentView.cs (1)
30 Content.Element.Measure(Context.FromPixels(targetWidth), Context.FromPixels(targetHeight),
Android\DragAndDropGestureHandler.cs (2)
117 var dragSourceElement = _currentCustomLocalStateData?.SourceElement ?? dragSourceRenderer?.Element; 320 customLocalStateData.SourceElement = renderer?.Element;
Android\FastRenderers\AutomationPropertiesProvider.cs (1)
27 VisualElement Element => _renderer?.Element;
Android\FastRenderers\ImageElementManager.cs (5)
72 ElevationHelper.SetElevation(view, renderer.Element); 78 var ImageElementManager = (IImageElement)renderer.Element; 79 var imageController = (IImageController)renderer.Element; 89 await TryUpdateBitmap(renderer as IImageRendererController, (ImageView)renderer.View, (IImageElement)renderer.Element).ConfigureAwait(false); 94 UpdateAspect(renderer as IImageRendererController, (ImageView)renderer.View, (IImageElement)renderer.Element);
Android\FastRenderers\ImageRenderer.cs (1)
175 ViewRenderer.MeasureExactly(this, ((IVisualElementRenderer)this).Element, Context);
Android\FastRenderers\VisualElementRenderer.cs (1)
28 VisualElement Element => _renderer?.Element;
Android\RendererPool.cs (1)
31 if (((IElementController)_parent.Element).LogicalChildren.Count == 0)
Android\Renderers\ListViewRenderer.cs (2)
537 if (_child?.Element == null) 543 VisualElement element = _child.Element;
Android\Renderers\PageContainer.cs (1)
49 if (Child.Element.Parent is IPageController ipc && !ipc.ContainerArea.IsEmpty)
Android\ResourceManager.cs (1)
201 element = renderer.Element;
Android\VisualElementPackager.cs (6)
34 _element = element ?? renderer.Element; 80 if (_renderer.Element != null) 82 _renderer.Element.ChildAdded -= _childAddedHandler; 83 _renderer.Element.ChildRemoved -= _childRemovedHandler; 84 _renderer.Element.ChildrenReordered -= _childReorderedHandler; 148 renderer.Element?.ClearValue(Platform.RendererProperty);
Android\VisualElementTracker.cs (16)
39 VisualElement view = renderer.Element; 85 VisualElement view = _renderer.Element; 140 if (_renderer.Element.Batched) 264 VisualElement view = _renderer.Element; 276 VisualElement view = _renderer.Element; 287 if (!(_renderer.Element is Layout layout)) 315 VisualElement view = _renderer.Element; 331 VisualElement view = _renderer.Element; 374 VisualElement view = _renderer.Element; 385 VisualElement view = _renderer.Element; 394 VisualElement view = _renderer.Element; 403 VisualElement view = _renderer.Element; 412 VisualElement view = _renderer.Element; 427 VisualElement view = _renderer.Element; 436 VisualElement view = _renderer.Element; 444 _renderer.View.Enabled = _renderer.Element.IsEnabled;
RendererToHandlerShim.cs (4)
98 if (VisualElementRenderer.Element is IView view) 105 else if (VisualElementRenderer.Element != null) 106 throw new Exception($"{VisualElementRenderer.Element} must implement: {nameof(Microsoft.Maui.IView)}"); 155 if (VisualElementRenderer != null && VisualElementRenderer.Element != view)