WPF Annotation Toolbar

Note: This topic is for Document/Medical only.

LEADTOOLS provides a standard ToolBar control for creating a WPF Annotation toolbar. To create the toolbar call the CreateToolBar method after you finish setting up the automation objects in Objects, or call the CreateDefaultObjects method. After the toolbar is created you can use the ToolBarButton property to edit the toolbar button control, the ToolBarButtonImage property to get or set the image to be used on a toolbar button, and the ToolBarButtonToolTip property to get or set the tooltip that appears for a toolbar button.

To automatically hide the automation toolbar, switch the value of the UserMode property to AnnUserMode.Run. To display the toolbar, switch the value of the UserMode property to AnnUserMode.Design. Whenever the UserMode property is changed, the UserModeChanged event is fired.

Use the CurrentObjectId property to get or set the current automation object id, which is the Id of the AnnAutomationObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The CurrentObjectIdChanged event is fired when this property is changed.

Use the CurrentRubberStampType property to get or set the current automation rubber stamp object type, which is the Type of the AnnRubberStampObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The CurrentRubberStampTypeChanged event is fired when this property is changed.

Help Version 19.0.2017.10.19
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document