1 write to TargetElement
PresentationFramework (1)
System\Windows\Controls\ContextMenuService.cs (1)
411
e.
TargetElement
= o;
13 references to TargetElement
PresentationFramework (13)
MS\Internal\Documents\DocumentViewerHelper.cs (6)
369
if (e.
TargetElement
!= null)
371
cm = e.
TargetElement
.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
396
e.
TargetElement
is TextElement)
398
contextMenuPosition = ((TextElement)e.
TargetElement
).ContentStart;
407
else if (e.
TargetElement
is TextElement)
409
contextMenuPosition = ((TextElement)e.
TargetElement
).ContentStart;
System\Windows\Controls\ContextMenuService.cs (1)
403
if (e.
TargetElement
== null)
System\Windows\Controls\PopupControlService.cs (1)
1004
DependencyObject o = args.
TargetElement
;
System\Windows\Controls\StickyNote.cs (1)
872
if (!(args.
TargetElement
is ScrollBar))
System\windows\Documents\TextEditorContextMenu.cs (4)
73
else if ((This.Selection.IsEmpty || e.
TargetElement
is TextElement) &&
74
e.
TargetElement
!= null)
77
contextMenu = (ContextMenu)e.
TargetElement
.GetValue(FrameworkElement.ContextMenuProperty);
116
if (contextMenu == null || !(e.
TargetElement
is UIElement))