LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
ContextMenu Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationObject Class : ContextMenu Property



The ContextMenu Property supports WPF/Silverlight.

The ContextMenu Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the context menu of this AnnAutomationObject.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationObject
Dim value As ContextMenu
 
instance.ContextMenu = value
 
value = instance.ContextMenu
C# 
public virtual ContextMenu ContextMenu {get; set;}
C++/CLI 
public:
virtual property ContextMenu^ ContextMenu {
   ContextMenu^ get();
   void set (    ContextMenu^ value);
}

Property Value

The context menu of this AnnAutomationObject.

Example

For C#/VB examples, refer to AnnAutomationManager.

Remarks

The Context Menu is displayed whenever an annotation object associated with this automation object is right-clicked by the mouse in design mode. You can use this context menu directly or you can derive your own classes from the System.Windows.Controls.ContextMenu class and assign it to this value. Setting this value to null (Nothing in Visual Basic) disables showing the context menu for this object in design mode.

For information regarding default context menus used throughout the user interface in the automated mode, including information on how to override the default values, refer to Localization of LEADTOOLS for .NET WPF Annotations Automation.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

ContextMenu requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.