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;
54 references to RealParent
Microsoft.Maui.Controls (54)
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;
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)
467 if (RealParent is BaseShellItem || RealParent is Shell) 470 var window = RealParent as Window; 547 /// <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> 550 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)
350 return Equals(element, this) || element.RealParent != null && CheckElementBelongsToScrollViewer(element.RealParent); 367 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)
966 Element parent = RealParent;