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
ToolBarButtonImage Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationObject Class : ToolBarButtonImage Property



The ToolBarButtonImage Property supports WPF/Silverlight.

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

Gets ot sets the toolbar button's System.Windows.Media.Imaging.BitmapSource of this AnnAutomationObject. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

A System.Windows.Media.Imaging.BitmapSource which represents the toolbar button's Image of this AnnAutomationObject.

Example

For C#/VB examples, refer to AnnAutomationManager.

Remarks

Calling CreateToolBar will create the toolbar and all the buttons for all the automation objects in AnnAutomationManager.Objects. After that, you can use this property to edit the toolbar button control if needed.

The image can have any size and any bits/pixel. However, it is advised to use the same size and bits/pixel for all toolbar button images for all automation objects. A recommended toolbar button image has a size of 24 by 24.

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

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