191 references to Parent
PresentationFramework (191)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
407FixedDocumentSequence sequence = document.Parent as FixedDocumentSequence;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
331FixedDocumentSequence sequence = fixedDoc.Parent as FixedDocumentSequence;
MS\Internal\Documents\ContentElementCollection.cs (1)
723DependencyObject node = item.Parent;
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
139if (item.Parent is DummyProxy) 141if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 148if (item.Parent != null) 183DummyProxy proxy = item.Parent as DummyProxy;
MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
43if (item.Parent != null) 108if (item.Parent != null) 261if (item.Parent is DummyProxy) 263if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 318if (item.Parent is DummyProxy) 320objectSearchFor = item.Parent; 418if (value.Parent != null)
MS\Internal\FrameworkObject.cs (4)
116return _fce.Parent; 259DependencyObject parent = _fce.Parent; 407parent = _fce.Parent; 893logicalParent = _fce.Parent;
MS\Internal\PtsHost\LineBase.cs (2)
181DependencyObject parent = inline.Parent; 259DependencyObject parent = inline.Parent;
MS\Internal\PtsHost\MbpInfo.cs (1)
114DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\PtsHost\UIElementParagraph.cs (3)
402Figure figure = (Figure) ((BlockUIContainer)Element).Parent; 524Figure figure = (Figure)((BlockUIContainer)Element).Parent; 544DependencyObject parent = ((BlockUIContainer)Element).Parent;
MS\Internal\Text\ComplexLine.cs (2)
411DependencyObject parent = inline.Parent; 484DependencyObject parent = inline.Parent;
MS\Internal\Text\DynamicPropertyReader.cs (2)
236element = ((FrameworkContentElement)element).Parent; 277i = i.Parent as Inline;
System\Windows\Controls\ColumnDefinition.cs (12)
154&& _items[i].Parent == _owner ); 169&& item.Parent == _owner ) 184&& value.Parent == _owner ) 207|| value.Parent != _owner ) 323&& _items[i].Parent == _owner ); 332&& _items[i + count].Parent == _owner ); 552if (item.Parent != null) 573return (item.Parent == _owner); 639&& _items[i].Parent == _owner ); 657&& value.Parent == _owner ); 670&& _items[i + 1].Parent == _owner ); 968value = ((Grid)base.Parent).GetFinalColumnDefinitionWidth(base.Index);
System\Windows\Controls\DefinitionBase.cs (6)
155Grid parentGrid = (Grid) definition.Parent; 192Grid parentGrid = (Grid) definition.Parent; 221Grid parentGrid = (Grid) definition.Parent; 790Grid parentGrid = (Grid)(_registry[i].Parent); 929Grid parentGrid = (Grid)definitionBase.Parent; 937Grid parentGrid = (Grid)definitionBase.Parent;
System\Windows\Controls\PopupControlService.cs (2)
1096return fce.Parent; 1136o = fce.Parent;
System\Windows\Controls\RowDefinition.cs (12)
149&& _items[i].Parent == _owner ); 164&& item.Parent == _owner ) 179&& value.Parent == _owner ) 202|| value.Parent != _owner ) 318&& _items[i].Parent == _owner ); 327&& _items[i + count].Parent == _owner ); 547if (item.Parent != null) 568return (item.Parent == _owner); 634&& _items[i].Parent == _owner ); 652&& value.Parent == _owner ); 665&& _items[i + 1].Parent == _owner ); 963value = ((Grid)base.Parent).GetFinalRowDefinitionHeight(base.Index);
System\Windows\Controls\TreeView.cs (1)
820return fce.Parent;
System\Windows\DescendentsWalkerBase.cs (1)
57logicalParent = ancestorFCE?.Parent;
System\Windows\Documents\Block.cs (1)
41if (this.Parent == null)
System\Windows\Documents\FixedDocument.cs (1)
1046FixedDocumentSequence parent = this.Parent as FixedDocumentSequence;
System\Windows\Documents\FlowDocument.cs (3)
857RichTextBox parentRichTextBox = this.Parent as RichTextBox; 1034DependencyObject oldParent = this.Parent; 1633if (value is TextElement && ((TextElement)value).Parent != null)
System\Windows\Documents\Inline.cs (1)
52if (this.Parent == null)
System\Windows\Documents\List.cs (4)
182if (item.Parent != this) 229Invariant.Assert(this.Parent == null, "Cannot Apply List Because It Is Inserted In The Tree Already."); 231Invariant.Assert(firstBlock.Parent == lastBlock.Parent, "Cannot Apply List Because Block Are Not Siblings.");
System\Windows\Documents\ListItem.cs (2)
72return (this.Parent as List); 100if (this.Parent == null)
System\Windows\Documents\Run.cs (1)
269RichTextBox rtb = document.Parent as RichTextBox;
System\Windows\Documents\TableCell.cs (2)
83DependencyObject oldParent = this.Parent; 368internal TableRow Row { get { return Parent as TableRow; } }
System\Windows\Documents\TableColumn.cs (1)
151internal Table Table { get { return Parent as Table; } }
System\Windows\Documents\TableRow.cs (2)
85DependencyObject oldParent = this.Parent; 261return (Parent as TableRowGroup);
System\Windows\Documents\TableRowGroup.cs (2)
220return Parent as Table; 285DependencyObject oldParent = this.Parent;
System\windows\Documents\TextEditorContextMenu.cs (1)
93element = element.Parent as TextElement;
System\windows\Documents\TextEditorLists.cs (3)
127List list = parentListItem == null ? null : (List)parentListItem.Parent; 164if (list.Parent is ListItem) 193if (list.Parent is ListItem)
System\windows\Documents\TextEditorMouse.cs (1)
796hitElement = ((FrameworkContentElement)hitElement).Parent;
System\windows\Documents\TextEditorTyping.cs (1)
1434parent = parent.Parent as TextElement;
System\Windows\Documents\TextElement.cs (8)
1116for (element = element1; element.Parent is TextElement; element = (TextElement)element.Parent) 1120for (element = element2; element.Parent is TextElement; element = (TextElement)element.Parent) 1129element1 = (TextElement)element1.Parent; 1135element2 = (TextElement)element2.Parent; 1142element1 = element1.Parent as TextElement; 1143element2 = element2.Parent as TextElement;
System\Windows\Documents\TextElementCollection.cs (8)
203if (item.Parent != this.Parent) 246if (previousSibling.Parent != this.Parent) 251if (newItem.Parent != null) 285if (nextSibling.Parent != this.Parent) 290if (newItem.Parent != null) 461if (newItem.Parent != null) 679return _isOwnerParent ? _owner : ((TextElement)_owner).Parent; 1003return _index >= 0 && TextElementCollectionHelper.IsCleanParent(_element.Parent, collection);
System\Windows\Documents\TextPointer.cs (4)
1389if (textElement.Parent != null) 1725ancestor = ancestor.Parent as Inline; 1738ancestor = ancestor.Parent as TextElement; 3869parentBlock = ((Inline)parentBlock).Parent;
System\Windows\Documents\TextPointerBase.cs (3)
760return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.Parent as ListItem); 775if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.Parent is ListItem && 778return (ListItem)paragraphOrBlockUIContainer.Parent;
System\Windows\Documents\TextRangeBase.cs (7)
447element = element is TextElement ? ((TextElement)element).Parent : null; 1828outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1842innerElement = innerElement.Parent as TextElement; 1859outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1870outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1884innerElement = innerElement.Parent as TextElement; 1901outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement;
System\Windows\Documents\TextRangeEdit.cs (27)
326if (inline.Parent != null && 327TextSchema.IsMergeableInline(inline.Parent.GetType()) && 328TextSchema.IsKnownType(inline.Parent.GetType()) && 334Span parentSpan = (Span)inline.Parent; 336if (parentSpan.Parent == null) 359object outerValue = parentSpan.Parent.GetValue(property); 400inline = inline.Parent as Inline; 979Span span = firstChild.Parent as Span; 1751((run.Parent != null && HasLocalInheritableStructuralPropertyValue(run)) || 1752(run.Parent == null && HasLocalStructuralPropertyValue(run)))) 1767((((Inline)splitPosition.Parent).Parent != null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) || 1768(((Inline)splitPosition.Parent).Parent == null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent))))) 1779bool sourceIsChild = (source.Parent == destination); 1816if (!TextSchema.ValuesAreEqual(inline.GetValue(inheritableProperty), inline.Parent.GetValue(inheritableProperty))) 1858while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection) 1860inline = (Span)inline.Parent; 1976for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1988for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 2004Span parent = inline.Parent as Span; 2010parent = parent.Parent as Span; 2035for (Span parent = child.Parent as Span; 2037parent = parent.Parent as Span) 2048TextElement limit = (TextElement)conflictingParent.Parent; 2145start = SplitFormattingElements(start, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2146end = SplitFormattingElements(end, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2264for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.Parent) 2275for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.Parent)
System\Windows\Documents\TextRangeEditLists.cs (31)
50ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.Parent as ListItem : null; 77TextElement parentBlock = (TextElement)secondParagraphOrBlockUIContainer.Parent; 250if (firstBlock != null && lastBlock != null && firstBlock.Parent == lastBlock.Parent) 280if (firstBlock == null || lastBlock == null || firstBlock.Parent != lastBlock.Parent || 281firstBlock.Parent is ListItem && firstBlock.PreviousBlock == null) 298ListItem parentListItem = firstBlock.Parent as ListItem; 309Invariant.Assert(block.Parent is ListItem); 342if (firstListItem == null || lastListItem == null || firstListItem.Parent != lastListItem.Parent || !(firstListItem.Parent is List)) 401firstListItem.Parent != lastListItem.Parent || 402!(firstListItem.Parent is List)) 416List list = (List)firstListItem.Parent; 469TextElement parent = (TextElement)lastListItem.Parent; 471while (parent != firstListItem.Parent) 474parent = (TextElement)parent.Parent; 496List unindentedList = (List)firstListItem.Parent; 499ListItem outerListItem = unindentedList.Parent as ListItem; 592if (startListItem != null && endListItem != null && startListItem.Parent == endListItem.Parent) 608if (end.Parent == startListItem.Parent) 683startListItem.List.Parent is ListItem) 711endListItem.List.Parent is ListItem) 732Invariant.Assert(!(startListItem.List.Parent is ListItem), "startListItem's list must not be nested!"); 741if (endListItem.List.Parent is ListItem) 743while (endListItem.List != null && endListItem.List.Parent is ListItem) 745endListItem = (ListItem)endListItem.List.Parent; 750Invariant.Assert(!(endListItem.List.Parent is ListItem), "endListItem's list must not be nested!");
System\Windows\Documents\TextRangeEditTables.cs (6)
112element = element.Parent as TextElement; 124element = element.Parent as TextElement; 136element = element.Parent as TextElement; 641ancestor = ancestor.Parent as TextElement; 2154commonAncestor = commonAncestor.Parent as TextElement; 2212element = element.Parent as TextElement;
System\Windows\Documents\TextRangeSerialization.cs (2)
1556Invariant.Assert(propertyBag.IsEmpty && propertyBag.Parent == null, "propertyBag is supposed to be an empty element outside any tree"); 1616!TextSchema.ValuesAreEqual(element.GetValue(property), element.Parent.GetValue(property)))
System\Windows\Documents\TextSchema.cs (1)
244ancestor = ancestor.Parent as Inline;
System\windows\Documents\TextSelection.cs (1)
1495element = ((TextElement)element).Parent;
System\Windows\Documents\ValidationHelper.cs (1)
113if (((TextElement)child).Parent != null)
System\Windows\Generated\FrameworkContentElement.cs (2)
679DependencyObject parent = Parent; 708DependencyObject parent = Parent;
System\Windows\Input\KeyboardNavigation.cs (1)
157return GetVisualRoot(fce.Parent);
System\Windows\LogicalTreeHelper.cs (1)
126return fce.Parent;