Raised when the user starts drawing a new link, just after the DiagramLink instance is created.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
public event EventHandler<LinkEventArgs> InitializeLink |
Visual Basic Copy Code |
---|
Public Event InitializeLink As EventHandler(Of LinkEventArgs) |
InitializeLink event handlers receive an argument of type LinkEventArgs. The following LinkEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The new DiagramLink instance. |
This event is raised immediately after the user starts drawing a new link. It lets you set the appearance properties of the link if you need their values to be different from the default ones defined in the Diagram object, or if they don't have correspondent properties in the Diagram class. The Initialize* events are intended only for initializing the appearance of items. Do not alter the structure of the diagram from their handlers, that is, do not create new items nor delete existing ones; if you do that, the control will be in an undefined state and will likely throw an exception at some point.