Implemented interface member:
property
RealParent
Microsoft.Maui.Controls.IElementController.RealParent
1 write to RealParent
Microsoft.Maui.Controls (1)
Element\Element.cs (1)
413
RealParent
= value;
66 references to RealParent
Microsoft.Maui.Controls (65)
Cells\Cell.cs (10)
139
var table =
RealParent
as TableView;
143
var list =
RealParent
as ListView;
197
if (
RealParent
!= null)
199
RealParent
.PropertyChanged += OnParentPropertyChanged;
200
RealParent
.PropertyChanging += OnParentPropertyChanging;
212
if (
RealParent
!= null)
214
RealParent
.PropertyChanged -= OnParentPropertyChanged;
215
RealParent
.PropertyChanging -= OnParentPropertyChanging;
230
var container =
RealParent
as ListView;
240
var container =
RealParent
as ListView;
Compatibility\Handlers\ListView\iOS\CellRenderer.cs (1)
128
if (cell.
RealParent
is VisualElement element && element.BackgroundColor != null)
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (8)
129
var parentListView = cell.
RealParent
as ListView;
397
while (e.
RealParent
!= null)
399
var renderer = (IPlatformViewHandler)e.
RealParent
.ToHandler(e.FindMauiContext());
403
e = e.
RealParent
;
441
var recycling = _cell.
RealParent
is ListView parentListView &&
451
var parentListView = _cell?.
RealParent
as ListView;
463
var parentListView = _cell.
RealParent
as ListView;
490
if (_cell.
RealParent
== null)
Compatibility\iOS\Extensions\CellExtensions.cs (2)
17
if (self.
RealParent
is ListView)
27
else if (self.
RealParent
is TableView)
Element\Element.cs (9)
319
OnParentChangingCore(Parent,
RealParent
);
383
get { return ParentOverride ??
RealParent
; }
389
Element realParent =
RealParent
;
414
if (
RealParent
!= null)
416
OnParentResourcesChanged(
RealParent
.GetMergedResources());
417
((IElementDefinition)
RealParent
).AddResourcesChangedListener(OnParentResourcesChanged);
904
} while ((element = element.
RealParent
) != null);
911
RealParent
?.OnDescendantAdded(child);
917
RealParent
?.OnDescendantRemoved(child);
FlyoutPage\FlyoutPage.cs (3)
49
if (value.
RealParent
!= null)
103
if (value.
RealParent
!= null)
251
if (
RealParent
!= null && (Flyout == null || Detail == null))
Internals\PageExtensions.cs (2)
14
while (!Application.IsApplicationOrWindowOrNull(parent.
RealParent
))
15
parent = parent.
RealParent
;
NavigableElement\NavigableElement.cs (1)
65
parent = parent.
RealParent
;
NavigationProxy.cs (3)
133
if (root.
RealParent
is not null)
147
if (modal.
RealParent
is not null && modal.
RealParent
is not IWindow)
Page\Page.cs (7)
465
if (
RealParent
is BaseShellItem ||
RealParent
is Shell)
468
var window =
RealParent
as Window;
545
/// <exception cref="InvalidOperationException">Thrown when the page's <see cref="Element.
RealParent
"/> can't be casted to <see cref="Page"/> or <see cref="BaseShellItem"/>.</exception>
548
if (!Application.IsApplicationOrWindowOrNull(
RealParent
) && !(
RealParent
is Page) && !(
RealParent
is BaseShellItem))
RelativeBindingSource.cs (8)
122
if (currentElement.
RealParent
is Application ||
123
currentElement.
RealParent
== null)
131
else if (currentElement.
RealParent
!= null)
133
chain.Add(currentElement.
RealParent
);
134
if (ElementFitsAncestorTypeAndLevel(currentElement.
RealParent
, ref currentLevel, ref lastMatchingBctx))
138
resolvedSource = currentElement.
RealParent
;
140
resolvedSource = currentElement.
RealParent
?.BindingContext;
147
ApplyAncestorTypeBinding(bindingAdapter, currentElement.
RealParent
, currentLevel, chain, lastMatchingBctx);
ScrollView\ScrollView.cs (3)
348
return Equals(element, this) || element.
RealParent
!= null && CheckElementBelongsToScrollViewer(element.
RealParent
);
365
var visualParentElement = item.
RealParent
as VisualElement;
TemplateUtilities.cs (3)
13
if (element.
RealParent
is Application)
37
Element parent = element.
RealParent
;
48
tcs.TrySetResult(element.
RealParent
);
ViewExtensions.cs (4)
371
while (!Application.IsApplicationOrNull(current.
RealParent
))
373
current = current.
RealParent
;
382
var parent = target.
RealParent
as Page;
386
parent = parent!.
RealParent
as Page;
VisualElement\VisualElement.cs (1)
963
Element parent =
RealParent
;
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Platform.cs (1)
203
((Application)Page.
RealParent
).NavigationProxy.Inner = this;