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