167 references to Parent
PresentationFramework (167)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
429
FixedDocumentSequence sequence = document.
Parent
as FixedDocumentSequence;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
351
FixedDocumentSequence sequence = fixedDoc.
Parent
as FixedDocumentSequence;
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (1)
747
DependencyObject node = item.
Parent
;
src\Framework\MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
148
if (item.
Parent
is DummyProxy)
150
if (LogicalTreeHelper.GetParent(item.
Parent
) != Owner)
157
if (item.
Parent
!= null)
192
DummyProxy proxy = item.
Parent
as DummyProxy;
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (7)
47
if (item.
Parent
!= null)
115
if (item.
Parent
!= null)
272
if (item.
Parent
is DummyProxy)
274
if (LogicalTreeHelper.GetParent(item.
Parent
) != Owner)
329
if (item.
Parent
is DummyProxy)
331
objectSearchFor = item.
Parent
;
433
if (value.
Parent
!= null)
src\Framework\MS\Internal\FrameworkObject.cs (4)
148
return _fce.
Parent
;
291
DependencyObject parent = _fce.
Parent
;
439
parent = _fce.
Parent
;
925
logicalParent = _fce.
Parent
;
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
197
DependencyObject parent = inline.
Parent
;
275
DependencyObject parent = inline.
Parent
;
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (1)
118
DependencyObject parent = ((Paragraph)o).
Parent
;
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (3)
401
Figure figure = (Figure) ((BlockUIContainer)Element).
Parent
;
519
Figure figure = (Figure)((BlockUIContainer)Element).
Parent
;
539
DependencyObject parent = ((BlockUIContainer)Element).
Parent
;
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
423
DependencyObject parent = inline.
Parent
;
496
DependencyObject parent = inline.
Parent
;
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (2)
246
element = ((FrameworkContentElement)element).
Parent
;
287
i = i.
Parent
as Inline;
src\Framework\System\Windows\Controls\DefinitionBase.cs (6)
170
Grid parentGrid = (Grid) definition.
Parent
;
207
Grid parentGrid = (Grid) definition.
Parent
;
236
Grid parentGrid = (Grid) definition.
Parent
;
797
Grid parentGrid = (Grid)(_registry[i].
Parent
);
897
Grid parentGrid = (Grid)definitionBase.
Parent
;
910
Grid parentGrid = (Grid)definitionBase.
Parent
;
src\Framework\System\Windows\Controls\PopupControlService.cs (2)
980
return fce.
Parent
;
1020
o = fce.
Parent
;
src\Framework\System\Windows\Controls\TreeView.cs (1)
830
return fce.
Parent
;
src\Framework\System\Windows\DescendentsWalkerBase.cs (1)
59
logicalParent = (ancestorFCE != null) ? ancestorFCE.
Parent
: null;
src\Framework\System\Windows\Documents\Block.cs (1)
44
if (this.
Parent
== null)
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
1092
FixedDocumentSequence parent = this.
Parent
as FixedDocumentSequence;
src\Framework\System\Windows\Documents\FlowDocument.cs (3)
869
RichTextBox parentRichTextBox = this.
Parent
as RichTextBox;
1049
DependencyObject oldParent = this.
Parent
;
1658
if (value is TextElement && ((TextElement)value).
Parent
!= null)
src\Framework\System\Windows\Documents\Inline.cs (1)
58
if (this.
Parent
== null)
src\Framework\System\Windows\Documents\List.cs (4)
193
if (item.
Parent
!= this)
240
Invariant.Assert(this.
Parent
== null, "Cannot Apply List Because It Is Inserted In The Tree Already.");
242
Invariant.Assert(firstBlock.
Parent
== lastBlock.
Parent
, "Cannot Apply List Because Block Are Not Siblings.");
src\Framework\System\Windows\Documents\ListItem.cs (2)
81
return (this.
Parent
as List);
109
if (this.
Parent
== null)
src\Framework\System\Windows\Documents\Run.cs (1)
279
RichTextBox rtb = document.
Parent
as RichTextBox;
src\Framework\System\Windows\Documents\TableCell.cs (2)
104
DependencyObject oldParent = this.
Parent
;
395
internal TableRow Row { get { return
Parent
as TableRow; } }
src\Framework\System\Windows\Documents\TableColumn.cs (1)
165
internal Table Table { get { return
Parent
as Table; } }
src\Framework\System\Windows\Documents\TableRow.cs (2)
110
DependencyObject oldParent = this.
Parent
;
289
return (
Parent
as TableRowGroup);
src\Framework\System\Windows\Documents\TableRowGroup.cs (2)
261
return
Parent
as Table;
326
DependencyObject oldParent = this.
Parent
;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
105
element = element.
Parent
as TextElement;
src\Framework\System\windows\Documents\TextEditorLists.cs (3)
146
List list = parentListItem == null ? null : (List)parentListItem.
Parent
;
183
if (list.
Parent
is ListItem)
212
if (list.
Parent
is ListItem)
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
815
hitElement = ((FrameworkContentElement)hitElement).
Parent
;
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1473
parent = parent.
Parent
as TextElement;
src\Framework\System\Windows\Documents\TextElement.cs (8)
1180
for (element = element1; element.
Parent
is TextElement; element = (TextElement)element.
Parent
)
1184
for (element = element2; element.
Parent
is TextElement; element = (TextElement)element.
Parent
)
1193
element1 = (TextElement)element1.
Parent
;
1199
element2 = (TextElement)element2.
Parent
;
1206
element1 = element1.
Parent
as TextElement;
1207
element2 = element2.
Parent
as TextElement;
src\Framework\System\Windows\Documents\TextElementCollection.cs (8)
209
if (item.
Parent
!= this.Parent)
258
if (previousSibling.
Parent
!= this.Parent)
263
if (newItem.
Parent
!= null)
303
if (nextSibling.
Parent
!= this.Parent)
308
if (newItem.
Parent
!= null)
488
if (newItem.
Parent
!= null)
715
return _isOwnerParent ? _owner : ((TextElement)_owner).
Parent
;
1039
return _index >= 0 && TextElementCollectionHelper.IsCleanParent(_element.
Parent
, collection);
src\Framework\System\Windows\Documents\TextPointer.cs (4)
1409
if (textElement.
Parent
!= null)
1745
ancestor = ancestor.
Parent
as Inline;
1758
ancestor = ancestor.
Parent
as TextElement;
3901
parentBlock = ((Inline)parentBlock).
Parent
;
src\Framework\System\Windows\Documents\TextPointerBase.cs (3)
768
return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.
Parent
as ListItem);
783
if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.
Parent
is ListItem &&
786
return (ListItem)paragraphOrBlockUIContainer.
Parent
;
src\Framework\System\Windows\Documents\TextRangeBase.cs (7)
462
element = element is TextElement ? ((TextElement)element).
Parent
: null;
1861
outerAnchoredBlock = outerAnchoredBlock.
Parent
as TextElement;
1875
innerElement = innerElement.
Parent
as TextElement;
1892
outerAnchoredBlock = outerAnchoredBlock.
Parent
as TextElement;
1903
outerAnchoredBlock = outerAnchoredBlock.
Parent
as TextElement;
1917
innerElement = innerElement.
Parent
as TextElement;
1934
outerAnchoredBlock = outerAnchoredBlock.
Parent
as TextElement;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (27)
331
if (inline.
Parent
!= null &&
332
TextSchema.IsMergeableInline(inline.
Parent
.GetType()) &&
333
TextSchema.IsKnownType(inline.
Parent
.GetType()) &&
339
Span parentSpan = (Span)inline.
Parent
;
341
if (parentSpan.
Parent
== null)
364
object outerValue = parentSpan.
Parent
.GetValue(property);
405
inline = inline.
Parent
as Inline;
984
Span span = firstChild.
Parent
as Span;
1756
((run.
Parent
!= null && HasLocalInheritableStructuralPropertyValue(run)) ||
1757
(run.
Parent
== null && HasLocalStructuralPropertyValue(run))))
1772
((((Inline)splitPosition.Parent).
Parent
!= null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) ||
1773
(((Inline)splitPosition.Parent).
Parent
== null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent)))))
1784
bool sourceIsChild = (source.
Parent
== destination);
1821
if (!TextSchema.ValuesAreEqual(inline.GetValue(inheritableProperty), inline.
Parent
.GetValue(inheritableProperty)))
1863
while ((FlowDirection)inline.
Parent
.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
1865
inline = (Span)inline.
Parent
;
1981
for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.
Parent
as Span)
1993
for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.
Parent
as Span)
2009
Span parent = inline.
Parent
as Span;
2015
parent = parent.
Parent
as Span;
2040
for (Span parent = child.
Parent
as Span;
2042
parent = parent.
Parent
as Span)
2053
TextElement limit = (TextElement)conflictingParent.
Parent
;
2150
start = SplitFormattingElements(start, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.
Parent
as TextElement);
2151
end = SplitFormattingElements(end, /*keepEmptyFormatting:*/false, /*limitingAncestor*/run.
Parent
as TextElement);
2269
for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.
Parent
)
2280
for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.
Parent
)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (31)
55
ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.
Parent
as ListItem : null;
82
TextElement parentBlock = (TextElement)secondParagraphOrBlockUIContainer.
Parent
;
255
if (firstBlock != null && lastBlock != null && firstBlock.
Parent
== lastBlock.
Parent
)
285
if (firstBlock == null || lastBlock == null || firstBlock.
Parent
!= lastBlock.
Parent
||
286
firstBlock.
Parent
is ListItem && firstBlock.PreviousBlock == null)
303
ListItem parentListItem = firstBlock.
Parent
as ListItem;
314
Invariant.Assert(block.
Parent
is ListItem);
345
if (firstListItem == null || lastListItem == null || firstListItem.
Parent
!= lastListItem.
Parent
|| !(firstListItem.
Parent
is List))
404
firstListItem.
Parent
!= lastListItem.
Parent
||
405
!(firstListItem.
Parent
is List))
419
List list = (List)firstListItem.
Parent
;
472
TextElement parent = (TextElement)lastListItem.
Parent
;
474
while (parent != firstListItem.
Parent
)
477
parent = (TextElement)parent.
Parent
;
499
List unindentedList = (List)firstListItem.
Parent
;
502
ListItem outerListItem = unindentedList.
Parent
as ListItem;
595
if (startListItem != null && endListItem != null && startListItem.
Parent
== endListItem.
Parent
)
611
if (end.Parent == startListItem.
Parent
)
686
startListItem.List.
Parent
is ListItem)
714
endListItem.List.
Parent
is ListItem)
735
Invariant.Assert(!(startListItem.List.
Parent
is ListItem), "startListItem's list must not be nested!");
744
if (endListItem.List.
Parent
is ListItem)
746
while (endListItem.List != null && endListItem.List.
Parent
is ListItem)
748
endListItem = (ListItem)endListItem.List.
Parent
;
753
Invariant.Assert(!(endListItem.List.
Parent
is ListItem), "endListItem's list must not be nested!");
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (6)
118
element = element.
Parent
as TextElement;
130
element = element.
Parent
as TextElement;
142
element = element.
Parent
as TextElement;
647
ancestor = ancestor.
Parent
as TextElement;
2156
commonAncestor = commonAncestor.
Parent
as TextElement;
2214
element = element.
Parent
as TextElement;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
1583
Invariant.Assert(propertyBag.IsEmpty && propertyBag.
Parent
== null, "propertyBag is supposed to be an empty element outside any tree");
1643
!TextSchema.ValuesAreEqual(element.GetValue(property), element.
Parent
.GetValue(property)))
src\Framework\System\Windows\Documents\TextSchema.cs (1)
248
ancestor = ancestor.
Parent
as Inline;
src\Framework\System\windows\Documents\TextSelection.cs (1)
1517
element = ((TextElement)element).
Parent
;
src\Framework\System\Windows\Documents\ValidationHelper.cs (1)
124
if (((TextElement)child).
Parent
!= null)
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (2)
699
DependencyObject parent =
Parent
;
728
DependencyObject parent =
Parent
;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
180
return GetVisualRoot(fce.
Parent
);
src\Framework\System\Windows\LogicalTreeHelper.cs (1)
146
return fce.
Parent
;