191 references to Parent
PresentationFramework (191)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
408FixedDocumentSequence sequence = document.Parent as FixedDocumentSequence;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
332FixedDocumentSequence sequence = fixedDoc.Parent as FixedDocumentSequence;
MS\Internal\Documents\ContentElementCollection.cs (1)
724DependencyObject node = item.Parent;
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
140if (item.Parent is DummyProxy) 142if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 149if (item.Parent != null) 184DummyProxy proxy = item.Parent as DummyProxy;
MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
44if (item.Parent != null) 109if (item.Parent != null) 262if (item.Parent is DummyProxy) 264if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 319if (item.Parent is DummyProxy) 321objectSearchFor = item.Parent; 419if (value.Parent != null)
MS\Internal\FrameworkObject.cs (4)
117return _fce.Parent; 260DependencyObject parent = _fce.Parent; 408parent = _fce.Parent; 894logicalParent = _fce.Parent;
MS\Internal\PtsHost\LineBase.cs (2)
186DependencyObject parent = inline.Parent; 264DependencyObject parent = inline.Parent;
MS\Internal\PtsHost\MbpInfo.cs (1)
115DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\PtsHost\UIElementParagraph.cs (3)
399Figure figure = (Figure) ((BlockUIContainer)Element).Parent; 517Figure figure = (Figure)((BlockUIContainer)Element).Parent; 537DependencyObject parent = ((BlockUIContainer)Element).Parent;
MS\Internal\Text\ComplexLine.cs (2)
412DependencyObject parent = inline.Parent; 485DependencyObject parent = inline.Parent;
MS\Internal\Text\DynamicPropertyReader.cs (2)
237element = ((FrameworkContentElement)element).Parent; 278i = i.Parent as Inline;
System\Windows\Controls\ColumnDefinition.cs (12)
157&& _items[i].Parent == _owner ); 172&& item.Parent == _owner ) 187&& value.Parent == _owner ) 210|| value.Parent != _owner ) 326&& _items[i].Parent == _owner ); 335&& _items[i + count].Parent == _owner ); 555if (item.Parent != null) 576return (item.Parent == _owner); 642&& _items[i].Parent == _owner ); 660&& value.Parent == _owner ); 673&& _items[i + 1].Parent == _owner ); 971value = ((Grid)base.Parent).GetFinalColumnDefinitionWidth(base.Index);
System\Windows\Controls\DefinitionBase.cs (6)
156Grid parentGrid = (Grid) definition.Parent; 193Grid parentGrid = (Grid) definition.Parent; 222Grid parentGrid = (Grid) definition.Parent; 791Grid parentGrid = (Grid)(_registry[i].Parent); 930Grid parentGrid = (Grid)definitionBase.Parent; 938Grid parentGrid = (Grid)definitionBase.Parent;
System\Windows\Controls\PopupControlService.cs (2)
1090return fce.Parent; 1130o = fce.Parent;
System\Windows\Controls\RowDefinition.cs (12)
157&& _items[i].Parent == _owner ); 172&& item.Parent == _owner ) 187&& value.Parent == _owner ) 210|| value.Parent != _owner ) 326&& _items[i].Parent == _owner ); 335&& _items[i + count].Parent == _owner ); 555if (item.Parent != null) 576return (item.Parent == _owner); 642&& _items[i].Parent == _owner ); 660&& value.Parent == _owner ); 673&& _items[i + 1].Parent == _owner ); 971value = ((Grid)base.Parent).GetFinalRowDefinitionHeight(base.Index);
System\Windows\Controls\TreeView.cs (1)
823return fce.Parent;
System\Windows\DescendentsWalkerBase.cs (1)
58logicalParent = (ancestorFCE != null) ? ancestorFCE.Parent : null;
System\Windows\Documents\Block.cs (1)
42if (this.Parent == null)
System\Windows\Documents\FixedDocument.cs (1)
1045FixedDocumentSequence parent = this.Parent as FixedDocumentSequence;
System\Windows\Documents\FlowDocument.cs (3)
861RichTextBox parentRichTextBox = this.Parent as RichTextBox; 1041DependencyObject oldParent = this.Parent; 1646if (value is TextElement && ((TextElement)value).Parent != null)
System\Windows\Documents\Inline.cs (1)
53if (this.Parent == null)
System\Windows\Documents\List.cs (4)
183if (item.Parent != this) 230Invariant.Assert(this.Parent == null, "Cannot Apply List Because It Is Inserted In The Tree Already."); 232Invariant.Assert(firstBlock.Parent == lastBlock.Parent, "Cannot Apply List Because Block Are Not Siblings.");
System\Windows\Documents\ListItem.cs (2)
73return (this.Parent as List); 101if (this.Parent == null)
System\Windows\Documents\Run.cs (1)
279RichTextBox rtb = document.Parent as RichTextBox;
System\Windows\Documents\TableCell.cs (2)
84DependencyObject oldParent = this.Parent; 375internal TableRow Row { get { return Parent as TableRow; } }
System\Windows\Documents\TableColumn.cs (1)
152internal Table Table { get { return Parent as Table; } }
System\Windows\Documents\TableRow.cs (2)
86DependencyObject oldParent = this.Parent; 265return (Parent as TableRowGroup);
System\Windows\Documents\TableRowGroup.cs (2)
235return Parent as Table; 300DependencyObject oldParent = this.Parent;
System\windows\Documents\TextEditorContextMenu.cs (1)
94element = element.Parent as TextElement;
System\windows\Documents\TextEditorLists.cs (3)
128List list = parentListItem == null ? null : (List)parentListItem.Parent; 165if (list.Parent is ListItem) 194if (list.Parent is ListItem)
System\windows\Documents\TextEditorMouse.cs (1)
800hitElement = ((FrameworkContentElement)hitElement).Parent;
System\windows\Documents\TextEditorTyping.cs (1)
1447parent = parent.Parent as TextElement;
System\Windows\Documents\TextElement.cs (8)
1134for (element = element1; element.Parent is TextElement; element = (TextElement)element.Parent) 1138for (element = element2; element.Parent is TextElement; element = (TextElement)element.Parent) 1147element1 = (TextElement)element1.Parent; 1153element2 = (TextElement)element2.Parent; 1160element1 = element1.Parent as TextElement; 1161element2 = element2.Parent as TextElement;
System\Windows\Documents\TextElementCollection.cs (8)
204if (item.Parent != this.Parent) 247if (previousSibling.Parent != this.Parent) 252if (newItem.Parent != null) 286if (nextSibling.Parent != this.Parent) 291if (newItem.Parent != null) 462if (newItem.Parent != null) 680return _isOwnerParent ? _owner : ((TextElement)_owner).Parent; 1004return _index >= 0 && TextElementCollectionHelper.IsCleanParent(_element.Parent, collection);
System\Windows\Documents\TextPointer.cs (4)
1390if (textElement.Parent != null) 1726ancestor = ancestor.Parent as Inline; 1739ancestor = ancestor.Parent as TextElement; 3870parentBlock = ((Inline)parentBlock).Parent;
System\Windows\Documents\TextPointerBase.cs (3)
761return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.Parent as ListItem); 776if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.Parent is ListItem && 779return (ListItem)paragraphOrBlockUIContainer.Parent;
System\Windows\Documents\TextRangeBase.cs (7)
448element = element is TextElement ? ((TextElement)element).Parent : null; 1830outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1844innerElement = innerElement.Parent as TextElement; 1861outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1872outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1886innerElement = innerElement.Parent as TextElement; 1903outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement;
System\Windows\Documents\TextRangeEdit.cs (27)
327if (inline.Parent != null && 328TextSchema.IsMergeableInline(inline.Parent.GetType()) && 329TextSchema.IsKnownType(inline.Parent.GetType()) && 335Span parentSpan = (Span)inline.Parent; 337if (parentSpan.Parent == null) 360object outerValue = parentSpan.Parent.GetValue(property); 401inline = inline.Parent as Inline; 980Span span = firstChild.Parent as Span; 1752((run.Parent != null && HasLocalInheritableStructuralPropertyValue(run)) || 1753(run.Parent == null && HasLocalStructuralPropertyValue(run)))) 1768((((Inline)splitPosition.Parent).Parent != null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) || 1769(((Inline)splitPosition.Parent).Parent == null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent))))) 1780bool sourceIsChild = (source.Parent == destination); 1817if (!TextSchema.ValuesAreEqual(inline.GetValue(inheritableProperty), inline.Parent.GetValue(inheritableProperty))) 1859while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection) 1861inline = (Span)inline.Parent; 1977for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1989for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 2005Span parent = inline.Parent as Span; 2011parent = parent.Parent as Span; 2036for (Span parent = child.Parent as Span; 2038parent = parent.Parent as Span) 2049TextElement limit = (TextElement)conflictingParent.Parent; 2146start = SplitFormattingElements(start, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2147end = SplitFormattingElements(end, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2265for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.Parent) 2276for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.Parent)
System\Windows\Documents\TextRangeEditLists.cs (31)
51ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.Parent as ListItem : null; 78TextElement parentBlock = (TextElement)secondParagraphOrBlockUIContainer.Parent; 251if (firstBlock != null && lastBlock != null && firstBlock.Parent == lastBlock.Parent) 281if (firstBlock == null || lastBlock == null || firstBlock.Parent != lastBlock.Parent || 282firstBlock.Parent is ListItem && firstBlock.PreviousBlock == null) 299ListItem parentListItem = firstBlock.Parent as ListItem; 310Invariant.Assert(block.Parent is ListItem); 341if (firstListItem == null || lastListItem == null || firstListItem.Parent != lastListItem.Parent || !(firstListItem.Parent is List)) 400firstListItem.Parent != lastListItem.Parent || 401!(firstListItem.Parent is List)) 415List list = (List)firstListItem.Parent; 468TextElement parent = (TextElement)lastListItem.Parent; 470while (parent != firstListItem.Parent) 473parent = (TextElement)parent.Parent; 495List unindentedList = (List)firstListItem.Parent; 498ListItem outerListItem = unindentedList.Parent as ListItem; 591if (startListItem != null && endListItem != null && startListItem.Parent == endListItem.Parent) 607if (end.Parent == startListItem.Parent) 682startListItem.List.Parent is ListItem) 710endListItem.List.Parent is ListItem) 731Invariant.Assert(!(startListItem.List.Parent is ListItem), "startListItem's list must not be nested!"); 740if (endListItem.List.Parent is ListItem) 742while (endListItem.List != null && endListItem.List.Parent is ListItem) 744endListItem = (ListItem)endListItem.List.Parent; 749Invariant.Assert(!(endListItem.List.Parent is ListItem), "endListItem's list must not be nested!");
System\Windows\Documents\TextRangeEditTables.cs (6)
113element = element.Parent as TextElement; 125element = element.Parent as TextElement; 137element = element.Parent as TextElement; 642ancestor = ancestor.Parent as TextElement; 2151commonAncestor = commonAncestor.Parent as TextElement; 2209element = element.Parent as TextElement;
System\Windows\Documents\TextRangeSerialization.cs (2)
1557Invariant.Assert(propertyBag.IsEmpty && propertyBag.Parent == null, "propertyBag is supposed to be an empty element outside any tree"); 1617!TextSchema.ValuesAreEqual(element.GetValue(property), element.Parent.GetValue(property)))
System\Windows\Documents\TextSchema.cs (1)
245ancestor = ancestor.Parent as Inline;
System\windows\Documents\TextSelection.cs (1)
1511element = ((TextElement)element).Parent;
System\Windows\Documents\ValidationHelper.cs (1)
114if (((TextElement)child).Parent != null)
System\Windows\Generated\FrameworkContentElement.cs (2)
680DependencyObject parent = Parent; 709DependencyObject parent = Parent;
System\Windows\Input\KeyboardNavigation.cs (1)
158return GetVisualRoot(fce.Parent);
System\Windows\LogicalTreeHelper.cs (1)
127return fce.Parent;