19 references to TargetObject
PresentationFramework (19)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2866
DocumentGrid targetGrid = args.
TargetObject
as DocumentGrid;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (7)
1111
if (args != null && args.
TargetObject
!= null && Document != null)
1119
if (args.
TargetObject
== document)
1127
else if (args.
TargetObject
is UIElement)
1129
targetUIElement = (UIElement)args.
TargetObject
;
1151
else if (args.
TargetObject
is ContentElement)
1154
child = args.
TargetObject
;
1166
rects = ich.GetRectangles((ContentElement)args.
TargetObject
);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1147
if (args != null && args.
TargetObject
!= null && _document is DependencyObject)
1154
if (args.
TargetObject
== _document)
1162
child = args.
TargetObject
;
1182
if (args.
TargetObject
is UIElement)
1184
UIElement targetObject = (UIElement)args.
TargetObject
;
1205
contentPosition = documentPaginator.GetObjectPosition(args.
TargetObject
);
1209
bringIntoViewState = new BringIntoViewState(this, contentPosition, args.
TargetObject
, args.TargetRect);
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
2504
Visual child = e.
TargetObject
as Visual;
2519
ContentElement contentElement = e.
TargetObject
as ContentElement;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3465
ContentElement child = args.
TargetObject
as ContentElement;
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
753
if (e.
TargetObject
== sender)