53 references to Element
Microsoft.Maui.Controls (53)
Compatibility\Handlers\iOS\FrameRenderer.cs (3)
79
var content =
Element
?.Content;
102
if (
Element
is not Frame element)
165
if (
Element
is IElement element)
Compatibility\Handlers\iOS\ViewRenderer.cs (4)
48
if (platformView != null &&
Element
!= null)
50
platformView.Frame = new CoreGraphics.CGRect(0, 0, (nfloat)
Element
.Width, (nfloat)
Element
.Height);
95
if (_nativeView != null &&
Element
!= null)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (24)
42
ListView ListView =>
Element
;
43
ITemplatedItemsView<Cell> TemplatedItemsView =>
Element
;
118
var backgroundLayer = _backgroundUIView.GetBackgroundLayer(
Element
.Background);
154
if (
Element
!= null)
288
Control.Source = _dataSource =
Element
.HasUnevenRows ? new UnevenListViewDataSource(_dataSource) : new ListViewDataSource(_dataSource);
433
if (
Element
.IsGroupingEnabled)
537
var refreshing =
Element
.IsRefreshing;
553
var groupReset = resetWhenGrouped &&
Element
.IsGroupingEnabled;
557
if (!groupReset &&
Element
.CachingStrategy == ListViewCachingStrategy.RetainElement)
624
if (
Element
.OnThisPlatform().RowAnimationsEnabled())
639
if (
Element
.OnThisPlatform().RowAnimationsEnabled())
666
if (
Element
.OnThisPlatform().RowAnimationsEnabled())
681
if (
Element
.OnThisPlatform().RowAnimationsEnabled())
689
if (
Element
.OnThisPlatform().RowAnimationsEnabled())
704
var isPullToRequestEnabled =
Element
.IsPullToRefreshEnabled && ListView.RefreshAllowed;
711
var rowHeight =
Element
.RowHeight;
713
if (
Element
.HasUnevenRows && rowHeight == -1)
721
var color =
Element
.SeparatorColor;
730
var visibility =
Element
.SeparatorVisibility;
746
if (
Element
.SelectionMode == ListViewSelectionMode.None)
748
Element
.SelectedItem = null;
757
var color =
Element
.RefreshControlColor;
768
switch (
Element
.VerticalScrollBarVisibility)
787
switch (
Element
.HorizontalScrollBarVisibility)
Compatibility\Handlers\TableView\iOS\TableViewRenderer.cs (9)
60
return new UITableView(RectangleF.Empty, GetTableViewStyle(
Element
?.Intent ?? TableIntent.Data));
109
if (
Element
.Opacity < 1)
135
var modeledView =
Element
;
141
Control.BackgroundView =
Element
.BackgroundColor == null ? _originalBackgroundView : null;
142
Control.BackgroundView.UpdateBackground(
Element
.Background);
147
var rowHeight =
Element
.RowHeight;
148
if (
Element
.HasUnevenRows && rowHeight == -1)
158
var rowHeight =
Element
.RowHeight;
159
if (
Element
.HasUnevenRows && rowHeight == -1)
Compatibility\Handlers\VisualElementRenderer.cs (13)
116
if (
Element
is TElement element && e.PropertyName != null)
186
if (
Element
is TElement element)
196
if (
Element
is TElement element)
203
if (
Element
is TElement element)
209
if (
Element
is TElement element)
219
if (
Element
is TElement element)
228
IView? IViewHandler.VirtualView =>
Element
;
230
Maui.IElement? IElementHandler.VirtualView =>
Element
;
236
get => ((
Element
?.Handler)?.PlatformView as PlatformView) ?? this;
301
_tempElement =
Element
;
315
if (
Element
is IElement element)
323
_commandMapper?.Invoke(this,
Element
, command, args);
329
if (
Element
is IElement element && element.Handler == (IPlatformViewHandler)this)