10 implementations of Element
Microsoft.Maui.Controls.Compatibility (10)
iOS\HandlerToRendererShim.cs (1)
21
public VisualElement
Element
{ get; private set; }
iOS\Renderers\CarouselPageRenderer.cs (1)
49
public VisualElement
Element
{ get; private set; }
iOS\Renderers\NavigationRenderer.cs (1)
61
public VisualElement
Element
{ get; private set; }
iOS\Renderers\PageRenderer.cs (1)
46
public VisualElement
Element
{ get; private set; }
iOS\Renderers\PhoneFlyoutPageRenderer.cs (1)
65
public VisualElement
Element
{ get; private set; }
iOS\Renderers\ScrollViewRenderer.cs (1)
44
public VisualElement
Element
{ get; private set; }
iOS\Renderers\TabbedRenderer.cs (1)
54
public VisualElement
Element
{ get; private set; }
iOS\Renderers\TabletFlyoutPageRenderer.cs (1)
195
public VisualElement
Element
{ get; private set; }
iOS\Renderers\WkWebViewRenderer.cs (1)
76
public VisualElement
Element
{ get; private set; }
iOS\VisualElementRenderer.cs (1)
138
VisualElement IVisualElementRenderer.
Element
104 references to Element
Microsoft.Maui.Controls.Compatibility (104)
iOS\Cells\ViewCellRenderer.cs (7)
121
if (renderer.
Element
== null)
126
var result = renderer.
Element
.Measure(width, height, MeasureFlags.IncludeMargins);
144
if (_rendererRef != null && _rendererRef.TryGetTarget(out renderer) && renderer.
Element
!= null)
146
renderer.
Element
.DisposeModalAndChildRenderers();
196
if (renderer.
Element
!= null && renderer == Platform.GetRenderer(renderer.
Element
))
197
renderer.
Element
.ClearValue(Platform.RendererProperty);
iOS\CollectionView\CarouselViewController.cs (2)
56
var element = (cell as TemplatedCell)?.VisualElementRenderer?.
Element
;
429
if (!((cell as CarouselTemplatedCell)?.VisualElementRenderer?.
Element
is View itemView))
iOS\CollectionView\HeightConstrainedTemplatedCell.cs (3)
26
if (VisualElementRenderer?.
Element
== null)
31
var bounds = VisualElementRenderer.
Element
.Bounds;
38
var desiredBounds = VisualElementRenderer.
Element
.Measure(double.PositiveInfinity, bounds.Height,
iOS\CollectionView\HorizontalCell.cs (1)
21
var measure = VisualElementRenderer.
Element
.Measure(double.PositiveInfinity,
iOS\CollectionView\HorizontalTemplatedHeaderView.cs (4)
21
if (VisualElementRenderer?.
Element
== null)
26
var measure = VisualElementRenderer.
Element
.Measure(double.PositiveInfinity,
29
var width = VisualElementRenderer.
Element
.Width > 0
30
? VisualElementRenderer.
Element
.Width : measure.Request.Width;
iOS\CollectionView\TemplatedCell.cs (6)
91
VisualElementRenderer.
Element
.Layout(nativeBounds);
99
var oldElement = VisualElementRenderer?.
Element
;
177
renderer.
Element
.MeasureInvalidated += MeasureInvalidated;
187
VisualElementRenderer.
Element
.Measure(width, height, MeasureFlags.IncludeMargins);
192
VisualElementRenderer.
Element
.Layout(rectangle);
294
var element = VisualElementRenderer?.
Element
;
iOS\CollectionView\TemplateHelpers.cs (3)
43
renderer.
Element
.BindingContext = view;
45
return (renderer.NativeView, renderer.
Element
);
56
return (renderer.NativeView, renderer.
Element
);
iOS\CollectionView\VerticalCell.cs (1)
21
var measure = VisualElementRenderer.
Element
.Measure(ConstrainedDimension,
iOS\CollectionView\VerticalSupplementaryView.cs (4)
21
if (VisualElementRenderer?.
Element
== null)
26
var measure = VisualElementRenderer.
Element
.Measure(ConstrainedDimension,
29
var height = VisualElementRenderer.
Element
.Height > 0
30
? VisualElementRenderer.
Element
.Height : measure.Request.Height;
iOS\CollectionView\WidthConstrainedTemplatedCell.cs (3)
26
if (VisualElementRenderer?.
Element
== null)
31
var bounds = VisualElementRenderer.
Element
.Bounds;
38
var desiredBounds = VisualElementRenderer.
Element
.Measure(bounds.Width, double.PositiveInfinity,
iOS\DisposeHelpers.cs (3)
55
if (rendererToRemove.
Element
!= null && Platform.GetRenderer(rendererToRemove.
Element
) == rendererToRemove)
56
rendererToRemove.
Element
.ClearValue(Platform.RendererProperty);
iOS\DragAndDropDelegate.cs (6)
34
if (interaction.View is IVisualElementRenderer renderer && renderer.
Element
is View view)
70
if (HandleDragLeave((View)renderer.
Element
, package))
95
if (HandleDragOver((View)renderer.
Element
, package))
114
renderer.
Element
is View view)
166
if (args.Data.Image == null && renderer.
Element
is IImageElement imageElement)
187
View = renderer.
Element
as View,
iOS\EventTracker.cs (7)
61
return ((_renderer?.
Element
as IGestureController)
101
OnElementChanged(this, new VisualElementChangedEventArgs(null, _renderer.
Element
));
204
View view = eventTracker?._renderer?.
Element
as View;
221
var view = eventTracker?._renderer?.
Element
as View;
278
var view = eventTracker?._renderer.
Element
as View;
322
var view = eventTracker?._renderer?.
Element
as View;
389
var view = eventTracker?._renderer?.
Element
as View;
iOS\Platform.cs (1)
546
var wrapper = new ControlsModalWrapper(modalRenderer.
Element
.Handler as IPlatformViewHandler);
iOS\RendererPool.cs (7)
64
var oldChildType = (oldNativeChildren[i] as IVisualElementRenderer)?.
Element
?.GetType();
99
if (childRenderer.
Element
!= null && ReferenceEquals(childRenderer, Platform.GetRenderer(childRenderer.
Element
)))
100
childRenderer.
Element
.ClearValue(Platform.RendererProperty);
160
if (childRenderer.
Element
!= null && ReferenceEquals(childRenderer, Platform.GetRenderer(childRenderer.
Element
)))
161
childRenderer.
Element
.ClearValue(Platform.RendererProperty);
iOS\Renderers\BorderElementManager.cs (2)
30
IBorderElement backgroundView = (IBorderElement)renderer.
Element
;
71
IBorderElement backgroundView = (IBorderElement)renderer.
Element
;
iOS\Renderers\ButtonElementManager.cs (2)
46
OnButtonTouchUpInside(renderer.
Element
as IButtonController);
53
OnButtonTouchDown(renderer.
Element
as IButtonController);
iOS\Renderers\ImageElementManager.cs (14)
53
if (renderer.IsDisposed || renderer.
Element
== null || renderer.Control == null)
58
renderer.
Element
is IImageElement imageElement &&
59
renderer.
Element
is IImageController imageController)
80
var imageElement = renderer.
Element
as IImageElement;
90
var imageElement = renderer.
Element
as IImageElement;
100
var imageElement = renderer.
Element
as IImageElement;
103
SetOpacity(renderer, renderer.
Element
as IImageElement);
105
SetAspect(renderer, renderer.
Element
as IImageElement);
114
var Element = renderer.
Element
;
131
var Element = renderer.
Element
;
150
var Element = renderer.
Element
;
259
renderer.
Element
is IElementController imageController)
312
var element = bindable ?? renderer.
Element
;
329
element = bindable ?? renderer.
Element
;
iOS\Renderers\ListViewRenderer.cs (13)
74
var e = _headerRenderer.
Element
;
96
var e = _footerRenderer.
Element
;
213
_headerRenderer.
Element
?.DisposeModalAndChildRenderers();
218
_footerRenderer.
Element
?.DisposeModalAndChildRenderers();
479
_footerRenderer.
Element
.MeasureInvalidated -= OnFooterMeasureInvalidated;
489
_footerRenderer.
Element
?.DisposeModalAndChildRenderers();
507
_footerRenderer.
Element
.MeasureInvalidated -= OnFooterMeasureInvalidated;
509
_footerRenderer.
Element
?.DisposeModalAndChildRenderers();
524
_headerRenderer.
Element
.MeasureInvalidated -= OnHeaderMeasureInvalidated;
534
_headerRenderer.
Element
?.DisposeModalAndChildRenderers();
553
_headerRenderer.
Element
.MeasureInvalidated -= OnHeaderMeasureInvalidated;
555
_headerRenderer.
Element
?.DisposeModalAndChildRenderers();
998
var element = _prototype.
Element
;
iOS\Renderers\NavigationRenderer.cs (4)
1686
if (_child?.
Element
!= null)
1689
if (_child.
Element
.Bounds != layoutBounds)
1690
Layout.LayoutChildIntoBoundingRegion(_child.
Element
, layoutBounds);
1712
_child.
Element
?.DisposeModalAndChildRenderers();
iOS\Renderers\TabbedRenderer.cs (1)
468
var page = renderer.
Element
as Page;
iOS\VisualElementPackager.cs (1)
35
SetElement(null, element ?? renderer.
Element
);
iOS\VisualElementTracker.cs (4)
56
SetElement(null, renderer.
Element
);
160
var view = Renderer.
Element
;
413
var element = Renderer.
Element
;
459
var element = Renderer?.
Element
;
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)
RendererToHandlerShim.iOS.cs (1)
40
PlatformArrange(VisualElementRenderer.
Element
.Bounds);