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