18 references to TargetObject
PresentationFramework (18)
MS\Internal\Documents\DocumentGrid.cs (1)
2800
DocumentGrid targetGrid = args.
TargetObject
as DocumentGrid;
System\Windows\Controls\FlowDocumentScrollViewer.cs (7)
1094
if (args != null && args.
TargetObject
!= null && Document != null)
1102
if (args.
TargetObject
== document)
1107
else if (args.
TargetObject
is UIElement)
1109
targetUIElement = (UIElement)args.
TargetObject
;
1131
else if (args.
TargetObject
is ContentElement)
1134
child = args.
TargetObject
;
1146
rects = ich.GetRectangles((ContentElement)args.
TargetObject
);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (6)
1108
if (args != null && args.
TargetObject
!= null && _document is DependencyObject)
1115
if (args.
TargetObject
== _document)
1123
child = args.
TargetObject
;
1143
if (args.
TargetObject
is UIElement targetObject)
1165
contentPosition = documentPaginator.GetObjectPosition(args.
TargetObject
);
1169
bringIntoViewState = new BringIntoViewState(this, contentPosition, args.
TargetObject
, args.TargetRect);
System\Windows\Controls\ScrollViewer.cs (2)
2453
Visual child = e.
TargetObject
as Visual;
2468
ContentElement contentElement = e.
TargetObject
as ContentElement;
System\Windows\Controls\TextBlock.cs (1)
3456
ContentElement child = args.
TargetObject
as ContentElement;
System\Windows\Controls\TreeViewItem.cs (1)
736
if (e.
TargetObject
== sender)