ContextMenuButton.TargetElement Property
Gets or sets the target element containing the context menu to show.
Namespace: Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Controls
Assembly: Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)
Syntax
'Declaration
Public Property TargetElement As FrameworkElement
public FrameworkElement TargetElement { get; set; }
public:
property FrameworkElement^ TargetElement {
FrameworkElement^ get ();
void set (FrameworkElement^ value);
}
public function get TargetElement () : FrameworkElement
public function set TargetElement (value : FrameworkElement)
Remarks
If this is nulla null reference (Nothing in Visual Basic), then ContextMenuButton attempts to show its context menu.
See Also
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Controls Namespace