1 write to TargetElement
PresentationFramework (1)
src\Framework\System\Windows\Controls\ContextMenuService.cs (1)
466
e.
TargetElement
= o;
13 references to TargetElement
PresentationFramework (13)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (6)
389
if (e.
TargetElement
!= null)
391
cm = e.
TargetElement
.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
416
e.
TargetElement
is TextElement)
418
contextMenuPosition = ((TextElement)e.
TargetElement
).ContentStart;
427
else if (e.
TargetElement
is TextElement)
429
contextMenuPosition = ((TextElement)e.
TargetElement
).ContentStart;
src\Framework\System\Windows\Controls\ContextMenuService.cs (1)
458
if (e.
TargetElement
== null)
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
879
DependencyObject o = args.
TargetElement
;
src\Framework\System\Windows\Controls\StickyNote.cs (1)
882
if (!(args.
TargetElement
is ScrollBar))
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (4)
82
else if ((This.Selection.IsEmpty || e.
TargetElement
is TextElement) &&
83
e.
TargetElement
!= null)
86
contextMenu = (ContextMenu)e.
TargetElement
.GetValue(FrameworkElement.ContextMenuProperty);
125
if (contextMenu == null || !(e.
TargetElement
is UIElement))