The RubberStampButtonDropDownContextMenu Property supports WPF/Silverlight.
The RubberStampButtonDropDownContextMenu Property is available in LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the context menu for the rubber stamp toolbar button of this AnnAutomationManager.Visual Basic (Declaration) | |
---|---|
Public Property RubberStampButtonDropDownContextMenu As ContextMenu |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AnnAutomationManager Dim value As ContextMenu instance.RubberStampButtonDropDownContextMenu = value value = instance.RubberStampButtonDropDownContextMenu |
C# | |
---|---|
public ContextMenu RubberStampButtonDropDownContextMenu {get; set;} |
C++/CLI | |
---|---|
public: property ContextMenu^ RubberStampButtonDropDownContextMenu { ContextMenu^ get(); void set ( ContextMenu^ value); } |
Property Value
The context menu for the rubber stamp toolbar button of this AnnAutomationManager.This example disables the "Void" rubber stamp type.
Visual Basic | ![]() |
---|---|
Private Sub AnnAutomationManager_RubberStampButtonDropDownContextMenu(ByVal manager As AnnAutomationManager) For Each item As MenuItem In manager.RubberStampButtonDropDownContextMenu.Items If String.Compare(CStr(item.Header), "Void", False) = 0 Then item.IsEnabled = False End If Next item End Sub |
C# | ![]() |
---|---|
private void AnnAutomationManager_RubberStampButtonDropDownContextMenu(AnnAutomationManager manager) { foreach(MenuItem item in manager.RubberStampButtonDropDownContextMenu.Items) { if(string.Compare((string)item.Header, "Void", false) == 0) item.IsEnabled = false; } } |
SilverlightCSharp | ![]() |
---|---|
SilverlightVB | ![]() |
---|---|
The ToolBar can create a button for the rubber stamp objects. The value of this property is the context menu used when this button is left or rightclicked.
You can directly manipulate (for more information, refer to Localization of LEADTOOLS for .NET WPF Annotations Automation) this context menu or set your own System.Windows.Controls.ContextMenu derived class if desired. For a list of available rubber stamp types, refer to the AnnRubberStampType enumeration.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)