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