Implemented interface member:
property
Parent
Microsoft.Maui.Controls.IElementDefinition.Parent
23 writes to Parent
Microsoft.Maui.Controls (22)
Cells\Cell.cs (2)
254 _contextActions[i].Parent = this; 262 item.Parent = null;
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (1)
129 view.Parent = _context.Shell;
GradientBrush.cs (4)
56 oldStop.Parent = null; 68 newStop.Parent = this; 82 oldStop.Parent = null; 94 newStop.Parent = this;
ImageElement.cs (1)
143 newSource.Parent = imageElement;
ItemsView.cs (1)
84 element.Parent = (Element)bindable;
Label\Label.cs (2)
62 formattedString.Parent = null; 73 formattedString.Parent = label;
ListView\ListView.cs (4)
454 content.Parent = this; 469 content.Parent = null; 678 view.Parent = this; 690 storage.Parent = this;
Menu\MenuBar.cs (2)
101 e.Parent = null; 117 e.Parent = null;
MultiBinding.cs (1)
149 _proxyObject = new ProxyElement() { Parent = targetObject as Element };
Shell\MenuShellItem.cs (1)
15 MenuItem.Parent = this;
TableView\TableView.cs (3)
85 Root.SelectMany(r => r).ForEach(cell => cell.Parent = this); 129 cell.Parent = this; 161 childCollectionChangedEventArgs.Args.NewItems?.Cast<Cell>().ForEach(cell => cell.Parent = this);
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Renderers\NavigationPageRenderer.cs (1)
385 titleView.Parent = Element;
168 references to Parent
Microsoft.Maui.Controls (166)
AppThemeBinding.cs (1)
158 ve?.Window?.Parent is Application a)
BindingExpression.cs (1)
539 if (elem.Parent == null)
Border\Border.cs (1)
71 e.PropertyName != nameof(Parent))
Cells\Cell.cs (4)
46 var ve = (Parent as VisualElement); 151 double IFlowDirectionController.Width => (Parent as VisualElement)?.Width ?? 0; 166 if ((Parent as ListView)?.HasUnevenRows == true || (Parent as TableView)?.HasUnevenRows == true)
Compatibility\Handlers\ListView\iOS\SwitchCellRenderer.cs (1)
106 uiSwitch.UpdateFlowDirection((IView)switchCell.Parent);
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (1)
1894 if (_view.Parent is null)
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (1)
258 if (titleView.Parent != null)
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (1)
152 return shellController.ProposeNavigation(ShellNavigationSource.ShellContentChanged, (ShellItem)ShellSection.Parent, ShellSection, item, ShellSection.Stack, true);
Compatibility\Handlers\Shell\iOS\UIContainerCell.cs (1)
70 if (View.Parent is BaseShellItem bsi)
ContentConverter.cs (2)
112 var parent = presenter?.Parent; 126 parent = parent.Parent;
DragAndDrop\DropGestureRecognizer.cs (5)
134 if (Parent is IImageElement && sourceTarget == null) 137 if (Parent is Image image) 139 else if (Parent is ImageButton ib) 141 else if (Parent is Button b) 144 Parent?.TrySetValue(text);
Element\Element.cs (11)
310 bool emitChange = Parent != value; 314 OnPropertyChanging(nameof(Parent)); 317 OnParentChangingCore(Parent, value); 319 OnParentChangingCore(Parent, RealParent); 329 OnPropertyChanged(nameof(Parent)); 396 OnPropertyChanging(nameof(Parent)); 400 OnParentChangingCore(Parent, value); 437 OnPropertyChanged(nameof(Parent)); 569 IVisualTreeElement IVisualTreeElement.GetVisualParent() => this.Parent; 779 if (bindableObject != null && (bindableObject as Element)?.Parent == null) 958 Maui.IElement Maui.IElement.Parent => Parent;
Element\Element_StyleSheets.cs (2)
43 IStyleSelectable IStyleSelectable.Parent => Parent; 56 parent = parent.Parent;
FormattedString.cs (1)
48 bo.Parent?.RemoveLogicalChild(bo);
Handlers\Items2\iOS\TemplatedCell2.cs (1)
68 (view.Parent as ItemsView)?.RemoveLogicalChild(view);
Internals\PropertyPropagationExtensions.cs (3)
77 PropagateFlowDirection(child, child.Parent); 98 PropagateVisual(child, child.Parent); 114 PropagateWindow(child, child.Parent);
Layout\AbsoluteLayout.cs (1)
34 if (bindable is View view && view.Parent is Maui.ILayout layout)
Layout\FlexLayout.cs (2)
599 if (Parent != null && _root == null) 601 else if (Parent == null && _root != null)
Layout\Grid.cs (1)
328 else if (bindable is Element element && element.Parent is Grid parentGrid)
LegacyLayouts\FlexLayout.cs (2)
258 if (Parent != null && _root == null) 260 else if (Parent == null && _root != null)
LegacyLayouts\Layout.cs (5)
222 if (child.Parent is IFlowDirectionController parent && 491 if (child.Parent is IFlowDirectionController parent && (isRightToLeft = parent.ApplyEffectiveFlowDirectionToChildContainer && parent.EffectiveFlowDirection.IsRightToLeft())) 609 while (view.Parent != null) 612 view = view.Parent; 662 var parent = view.Parent as Layout;
LegacyLayouts\RelativeLayout.cs (3)
104 (view?.Parent as RelativeLayout)?.UpdateBoundsConstraint(view); 208 double mockWidth = double.IsPositiveInfinity(widthConstraint) ? (Parent as VisualElement).Width : widthConstraint; 209 double mockHeight = double.IsPositiveInfinity(heightConstraint) ? (Parent as VisualElement).Height : heightConstraint;
Menu\MenuBarTracker.cs (2)
32 _menuBar.Parent?.RemoveLogicalChild(_menuBar); 34 else if (_menuBar.Parent != _parent)
Menu\MenuItem.cs (1)
142 if (menuItem.Parent is MenuItem parentMenuItem && !parentMenuItem.IsEnabled)
NavigableElement\NavigableElement.cs (1)
56 Element parent = Parent;
NavigationPage\NavigationPage.cs (2)
556 if (flyoutPage != null && flyoutPage.Parent is IWindow && flyoutPage.Toolbar == _toolbar) 574 if (flyoutPage != null && flyoutPage.Parent is IWindow)
Page\Page.cs (6)
218 if (Parent is Page page && page.IsSet(PlatformConfiguration.iOSSpecific.Page.PrefersHomeIndicatorAutoHiddenProperty)) 230 if (Parent is Page page && page.IsSet(PlatformConfiguration.iOSSpecific.Page.PrefersHomeIndicatorAutoHiddenProperty)) 242 if (Parent is Page page && page.IsSet(PlatformConfiguration.iOSSpecific.Page.PrefersHomeIndicatorAutoHiddenProperty)) 543 /// Called when the page's <see cref="Element.Parent"/> property has changed. 727 return (element.Parent is Application app) ? app : FindApplication(element.Parent);
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
160 page.Parent?.RemoveLogicalChild(page); 241 modal.Parent?.RemoveLogicalChild(modal);
RadioButton\RadioButtonGroup.cs (3)
71 Element parent = radioButton.Parent; 103 Element parent = element.Parent; 105 parent = parent.Parent;
Shell\BaseShellItem.cs (12)
132 if (Parent is IShellController shell) 134 else if (Parent is ShellGroupItem sgi) 240 if (Parent != null) 242 if (propertyName == Shell.ItemTemplateProperty.PropertyName || propertyName == nameof(Parent)) 243 Propagate(Shell.ItemTemplateProperty, this, Parent, true); 249 if (me == null || me.Parent == null) 252 Propagate(property, me.Parent, me, false); 286 var ve = (Parent as VisualElement); 293 double IFlowDirectionController.Width => (Parent as VisualElement)?.Width ?? 0; 339 if (Parent is Shell) 340 return Parent; 342 var parent = (BaseShellItem)Parent;
Shell\RouteRequestBuilder.cs (4)
129 Item = Section.Parent as ShellItem; 141 Section = Content.Parent as ShellSection; 147 Item = Section.Parent as ShellItem; 154 if (Item?.Parent is Shell s)
Shell\Shell.cs (13)
351 element = element.Parent; 620 item = item.Parent; 638 if (bo is MenuItem mi && mi.Parent != null && mi.Parent.IsSet(MenuItemTemplateProperty)) 639 return mi.Parent; 786 leaf = leaf.Parent; 818 shellItem = s.Parent as ShellItem; 822 shellItem = c.Parent.Parent as ShellItem; 823 shellSection = c.Parent as ShellSection; 900 OnFlyoutItemSelected(section.Parent, false); 1810 element = element.Parent; 1852 pivot = pivot.Parent;
Shell\ShellContent.cs (13)
75 var services = Parent?.FindMauiContext()?.Services; 125 internal bool IsVisibleContent => Parent is ShellSection shellSection && shellSection.IsVisibleSection && shellSection.CurrentItem == this; 150 if (page.Parent == null) 207 if (value is not null && value.Parent != this) 217 if (Parent is not null) 219 ((ShellSection)Parent).UpdateDisplayedPage(); 234if (Parent is ShellSection shellSection && 235 shellSection.Parent is ShellItem shellItem && 236 shellItem.Parent is Shell shellInstance) 279 if (page.Parent != null) 281 return (ShellContent)page.Parent; 321 if (shellContent.Parent?.Parent is ShellItem shellItem)
Shell\ShellElementCollection.cs (3)
261 if (bsi.Parent == null) 264 CheckVisibility(bsi.Parent as BaseShellItem); 271 CheckVisibility(baseShellItem.Parent as BaseShellItem);
Shell\ShellFlyoutItemsManager.cs (1)
140 if (!(shellSection.Parent is TabBar))
Shell\ShellItem.cs (11)
69 var controller = (IShellController)Parent; 101 Shell shell = Parent as Shell; 191 internal bool IsVisibleItem => Parent is Shell shell && shell?.CurrentItem == this; 195 if (Parent is Shell shell) 206 if (shellSection.Parent != null) 208 var current = (ShellItem)shellSection.Parent; 290 if (shellItem.Parent is Shell) 296 if (shellItem.Parent is IShellController shell && shellItem.IsVisibleItem) 304 ((IShellController)shellItem?.Parent)?.AppearanceChanged(shellItem, false); 328 if (CurrentItem != null && Parent is Shell shell && shell.CurrentItem == this) 344 ((IShellController)Parent)?.AppearanceChanged(CurrentItem, false);
Shell\ShellNavigationManager.cs (1)
305 baseShellItem = element?.Parent as BaseShellItem;
Shell\ShellSection.cs (23)
126 (Parent?.Parent as IShellController)?.UpdateCurrentState(ShellNavigationSource.Pop); 146 (Parent?.Parent as IShellController)?.UpdateCurrentState(ShellNavigationSource.PopToRoot); 272 Shell Shell => Parent?.Parent as Shell; 274 ShellItem ShellItem => Parent as ShellItem; 278 if (shellContent.Parent != null) 280 var current = (ShellSection)shellContent.Parent; 625 if (Parent?.Parent is Shell shell) 737 Parent as ShellItem, 767 Parent as ShellItem, 806 Parent as ShellItem, 943 internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.CurrentItem?.CurrentItem == this; 963 if (presentedPage.Parent == null) 994 if (shellSection.Parent?.Parent is IShellController shell && shellSection.IsVisibleSection) 1002 ((IShellController)shellSection?.Parent?.Parent)?.AppearanceChanged(shellSection, false); 1017 void SendAppearanceChanged() => ((IShellController)Parent?.Parent)?.AppearanceChanged(this, false);
Shell\ShellUriHandler.cs (6)
751 Shell = (Shell)Item.Parent; 757 Item = Section.Parent as ShellItem; 760 Shell = (Shell)Item.Parent; 768 Section = Content.Parent as ShellSection; 771 Item = Section.Parent as ShellItem; 774 Shell = (Shell)Item.Parent;
SwipeView\SwipeItems.cs (4)
162 if (e.Parent is not null && e.Parent != this) 165 ?.LogWarning($"{e} is already part of {e.Parent}. Remove from {e.Parent} to avoid inconsistent behavior.");
TypedBinding.cs (1)
432 if (elem.Parent == null)
VisualElement\VisualElement.cs (3)
651 var parent = Parent as VisualElement; 681 var parent = Parent as IInputTransparentContainerElement; 1411 (Parent as VisualElement)?.OnChildMeasureInvalidatedInternal(this, args.Trigger, ++depth);
Window\Window.cs (3)
416 Application? Application => Parent as Application; 420 if (Parent != null) 629 if (Parent != null)
Microsoft.Maui.Controls.Compatibility (2)
Tizen\Renderers\VisualElementRenderer.cs (2)
698 effect.Container = Element.Parent == null ? null : Platform.GetRenderer(Element.Parent)?.NativeView;