191 references to Parent
PresentationFramework (191)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
419FixedDocumentSequence sequence = document.Parent as FixedDocumentSequence;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
341FixedDocumentSequence sequence = fixedDoc.Parent as FixedDocumentSequence;
MS\Internal\Documents\ContentElementCollection.cs (1)
729DependencyObject node = item.Parent;
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
145if (item.Parent is DummyProxy) 147if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 154if (item.Parent != null) 189DummyProxy proxy = item.Parent as DummyProxy;
MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
48if (item.Parent != null) 113if (item.Parent != null) 266if (item.Parent is DummyProxy) 268if (LogicalTreeHelper.GetParent(item.Parent) != Owner) 323if (item.Parent is DummyProxy) 325objectSearchFor = item.Parent; 423if (value.Parent != null)
MS\Internal\FrameworkObject.cs (4)
120return _fce.Parent; 263DependencyObject parent = _fce.Parent; 411parent = _fce.Parent; 897logicalParent = _fce.Parent;
MS\Internal\PtsHost\LineBase.cs (2)
192DependencyObject parent = inline.Parent; 270DependencyObject parent = inline.Parent;
MS\Internal\PtsHost\MbpInfo.cs (1)
117DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\PtsHost\UIElementParagraph.cs (3)
402Figure figure = (Figure) ((BlockUIContainer)Element).Parent; 520Figure figure = (Figure)((BlockUIContainer)Element).Parent; 540DependencyObject parent = ((BlockUIContainer)Element).Parent;
MS\Internal\Text\ComplexLine.cs (2)
417DependencyObject parent = inline.Parent; 490DependencyObject parent = inline.Parent;
MS\Internal\Text\DynamicPropertyReader.cs (2)
243element = ((FrameworkContentElement)element).Parent; 284i = i.Parent as Inline;
System\Windows\Controls\ColumnDefinition.cs (12)
167&& _items[i].Parent == _owner ); 182&& item.Parent == _owner ) 197&& value.Parent == _owner ) 220|| value.Parent != _owner ) 336&& _items[i].Parent == _owner ); 345&& _items[i + count].Parent == _owner ); 565if (item.Parent != null) 586return (item.Parent == _owner); 652&& _items[i].Parent == _owner ); 670&& value.Parent == _owner ); 683&& _items[i + 1].Parent == _owner ); 981value = ((Grid)base.Parent).GetFinalColumnDefinitionWidth(base.Index);
System\Windows\Controls\DefinitionBase.cs (6)
163Grid parentGrid = (Grid) definition.Parent; 200Grid parentGrid = (Grid) definition.Parent; 229Grid parentGrid = (Grid) definition.Parent; 798Grid parentGrid = (Grid)(_registry[i].Parent); 937Grid parentGrid = (Grid)definitionBase.Parent; 945Grid parentGrid = (Grid)definitionBase.Parent;
System\Windows\Controls\PopupControlService.cs (2)
1100return fce.Parent; 1140o = fce.Parent;
System\Windows\Controls\RowDefinition.cs (12)
167&& _items[i].Parent == _owner ); 182&& item.Parent == _owner ) 197&& value.Parent == _owner ) 220|| value.Parent != _owner ) 336&& _items[i].Parent == _owner ); 345&& _items[i + count].Parent == _owner ); 565if (item.Parent != null) 586return (item.Parent == _owner); 652&& _items[i].Parent == _owner ); 670&& value.Parent == _owner ); 683&& _items[i + 1].Parent == _owner ); 981value = ((Grid)base.Parent).GetFinalRowDefinitionHeight(base.Index);
System\Windows\Controls\TreeView.cs (1)
828return fce.Parent;
System\Windows\DescendentsWalkerBase.cs (1)
62logicalParent = (ancestorFCE != null) ? ancestorFCE.Parent : null;
System\Windows\Documents\Block.cs (1)
44if (this.Parent == null)
System\Windows\Documents\FixedDocument.cs (1)
1056FixedDocumentSequence 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)
74return (this.Parent as List); 102if (this.Parent == null)
System\Windows\Documents\Run.cs (1)
279RichTextBox rtb = document.Parent as RichTextBox;
System\Windows\Documents\TableCell.cs (2)
97DependencyObject oldParent = this.Parent; 388internal TableRow Row { get { return Parent as TableRow; } }
System\Windows\Documents\TableColumn.cs (1)
160internal Table Table { get { return Parent as Table; } }
System\Windows\Documents\TableRow.cs (2)
101DependencyObject oldParent = this.Parent; 280return (Parent as TableRowGroup);
System\Windows\Documents\TableRowGroup.cs (2)
252return Parent as Table; 317DependencyObject oldParent = this.Parent;
System\windows\Documents\TextEditorContextMenu.cs (1)
96element = element.Parent as TextElement;
System\windows\Documents\TextEditorLists.cs (3)
144List list = parentListItem == null ? null : (List)parentListItem.Parent; 181if (list.Parent is ListItem) 210if (list.Parent is ListItem)
System\windows\Documents\TextEditorMouse.cs (1)
814hitElement = ((FrameworkContentElement)hitElement).Parent;
System\windows\Documents\TextEditorTyping.cs (1)
1456parent = parent.Parent as TextElement;
System\Windows\Documents\TextElement.cs (8)
1135for (element = element1; element.Parent is TextElement; element = (TextElement)element.Parent) 1139for (element = element2; element.Parent is TextElement; element = (TextElement)element.Parent) 1148element1 = (TextElement)element1.Parent; 1154element2 = (TextElement)element2.Parent; 1161element1 = element1.Parent as TextElement; 1162element2 = element2.Parent as TextElement;
System\Windows\Documents\TextElementCollection.cs (8)
206if (item.Parent != this.Parent) 249if (previousSibling.Parent != this.Parent) 254if (newItem.Parent != null) 288if (nextSibling.Parent != this.Parent) 293if (newItem.Parent != null) 464if (newItem.Parent != null) 682return _isOwnerParent ? _owner : ((TextElement)_owner).Parent; 1006return _index >= 0 && TextElementCollectionHelper.IsCleanParent(_element.Parent, collection);
System\Windows\Documents\TextPointer.cs (4)
1395if (textElement.Parent != null) 1731ancestor = ancestor.Parent as Inline; 1744ancestor = ancestor.Parent as TextElement; 3875parentBlock = ((Inline)parentBlock).Parent;
System\Windows\Documents\TextPointerBase.cs (3)
763return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.Parent as ListItem); 778if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.Parent is ListItem && 781return (ListItem)paragraphOrBlockUIContainer.Parent;
System\Windows\Documents\TextRangeBase.cs (7)
451element = element is TextElement ? ((TextElement)element).Parent : null; 1833outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1847innerElement = innerElement.Parent as TextElement; 1864outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1875outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement; 1889innerElement = innerElement.Parent as TextElement; 1906outerAnchoredBlock = outerAnchoredBlock.Parent as TextElement;
System\Windows\Documents\TextRangeEdit.cs (27)
329if (inline.Parent != null && 330TextSchema.IsMergeableInline(inline.Parent.GetType()) && 331TextSchema.IsKnownType(inline.Parent.GetType()) && 337Span parentSpan = (Span)inline.Parent; 339if (parentSpan.Parent == null) 362object outerValue = parentSpan.Parent.GetValue(property); 403inline = inline.Parent as Inline; 982Span span = firstChild.Parent as Span; 1754((run.Parent != null && HasLocalInheritableStructuralPropertyValue(run)) || 1755(run.Parent == null && HasLocalStructuralPropertyValue(run)))) 1770((((Inline)splitPosition.Parent).Parent != null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) || 1771(((Inline)splitPosition.Parent).Parent == null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent))))) 1782bool sourceIsChild = (source.Parent == destination); 1819if (!TextSchema.ValuesAreEqual(inline.GetValue(inheritableProperty), inline.Parent.GetValue(inheritableProperty))) 1861while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection) 1863inline = (Span)inline.Parent; 1979for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1991for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 2007Span parent = inline.Parent as Span; 2013parent = parent.Parent as Span; 2038for (Span parent = child.Parent as Span; 2040parent = parent.Parent as Span) 2051TextElement limit = (TextElement)conflictingParent.Parent; 2148start = SplitFormattingElements(start, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2149end = SplitFormattingElements(end, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.Parent as TextElement); 2267for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.Parent) 2278for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.Parent)
System\Windows\Documents\TextRangeEditLists.cs (31)
53ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.Parent as ListItem : null; 80TextElement parentBlock = (TextElement)secondParagraphOrBlockUIContainer.Parent; 253if (firstBlock != null && lastBlock != null && firstBlock.Parent == lastBlock.Parent) 283if (firstBlock == null || lastBlock == null || firstBlock.Parent != lastBlock.Parent || 284firstBlock.Parent is ListItem && firstBlock.PreviousBlock == null) 301ListItem parentListItem = firstBlock.Parent as ListItem; 312Invariant.Assert(block.Parent is ListItem); 343if (firstListItem == null || lastListItem == null || firstListItem.Parent != lastListItem.Parent || !(firstListItem.Parent is List)) 402firstListItem.Parent != lastListItem.Parent || 403!(firstListItem.Parent is List)) 417List list = (List)firstListItem.Parent; 470TextElement parent = (TextElement)lastListItem.Parent; 472while (parent != firstListItem.Parent) 475parent = (TextElement)parent.Parent; 497List unindentedList = (List)firstListItem.Parent; 500ListItem outerListItem = unindentedList.Parent as ListItem; 593if (startListItem != null && endListItem != null && startListItem.Parent == endListItem.Parent) 609if (end.Parent == startListItem.Parent) 684startListItem.List.Parent is ListItem) 712endListItem.List.Parent is ListItem) 733Invariant.Assert(!(startListItem.List.Parent is ListItem), "startListItem's list must not be nested!"); 742if (endListItem.List.Parent is ListItem) 744while (endListItem.List != null && endListItem.List.Parent is ListItem) 746endListItem = (ListItem)endListItem.List.Parent; 751Invariant.Assert(!(endListItem.List.Parent is ListItem), "endListItem's list must not be nested!");
System\Windows\Documents\TextRangeEditTables.cs (6)
115element = element.Parent as TextElement; 127element = element.Parent as TextElement; 139element = element.Parent as TextElement; 644ancestor = ancestor.Parent as TextElement; 2153commonAncestor = commonAncestor.Parent as TextElement; 2211element = element.Parent as TextElement;
System\Windows\Documents\TextRangeSerialization.cs (2)
1563Invariant.Assert(propertyBag.IsEmpty && propertyBag.Parent == null, "propertyBag is supposed to be an empty element outside any tree"); 1623!TextSchema.ValuesAreEqual(element.GetValue(property), element.Parent.GetValue(property)))
System\Windows\Documents\TextSchema.cs (1)
246ancestor = ancestor.Parent as Inline;
System\windows\Documents\TextSelection.cs (1)
1514element = ((TextElement)element).Parent;
System\Windows\Documents\ValidationHelper.cs (1)
116if (((TextElement)child).Parent != null)
System\Windows\Generated\FrameworkContentElement.cs (2)
686DependencyObject parent = Parent; 715DependencyObject parent = Parent;
System\Windows\Input\KeyboardNavigation.cs (1)
168return GetVisualRoot(fce.Parent);
System\Windows\LogicalTreeHelper.cs (1)
130return fce.Parent;