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
CurrentDesignerChanged Event
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomation Class : CurrentDesignerChanged Event



The CurrentDesignerChanged Event supports WPF/Silverlight.

The CurrentDesignerChanged Event is available in LEADTOOLS Document and Medical Imaging toolkits.

Occurs when the current designer has been changed. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Event CurrentDesignerChanged As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim handler As EventHandler
 
AddHandler instance.CurrentDesignerChanged, handler
C# 
public event EventHandler CurrentDesignerChanged
C++/CLI 
public:
event EventHandler^ CurrentDesignerChanged

Example

For C#/VB examples, refer to CurrentDesigner.

Remarks

At any given time, the AnnAutomation object can have a working AnnDesigner-derived object as follows:

Designer Base Class Notes
null (Nothing in Visual Basic) (Design and Run user mode) No designer is currently active.
AnnDrawDesigner (Design user mode) The AnnAutomation is currently drawing or about to draw a new object.
AnnEditDesigner (Design user mode) One or more objects are currently being edited or are about to be edited.
AnnRunDesigner (Run user mode) An object is currently being run or about to be run

This property allows you to hook into the current designer and change or monitor its status while it is running. For example, you can determine if CurrentDesigner is an AnnDrawDesigner derived class and subscribe to the AnnDrawDesigner.Draw event and so forth.

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

Reference

AnnAutomation Class
AnnAutomation Members

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