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