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