1 write to TargetElement
PresentationFramework (1)
System\Windows\Controls\ContextMenuService.cs (1)
407e.TargetElement = o;
13 references to TargetElement
PresentationFramework (13)
MS\Internal\Documents\DocumentViewerHelper.cs (6)
367if (e.TargetElement != null) 369cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu; 394e.TargetElement is TextElement) 396contextMenuPosition = ((TextElement)e.TargetElement).ContentStart; 405else if (e.TargetElement is TextElement) 407contextMenuPosition = ((TextElement)e.TargetElement).ContentStart;
System\Windows\Controls\ContextMenuService.cs (1)
399if (e.TargetElement == null)
System\Windows\Controls\PopupControlService.cs (1)
994DependencyObject o = args.TargetElement;
System\Windows\Controls\StickyNote.cs (1)
856if (!(args.TargetElement is ScrollBar))
System\windows\Documents\TextEditorContextMenu.cs (4)
71else if ((This.Selection.IsEmpty || e.TargetElement is TextElement) && 72e.TargetElement != null) 75contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 114if (contextMenu == null || !(e.TargetElement is UIElement))