To enable interactive drawing of IconNode objects, add the following code after the InitializeComponent call:
C# Copy Code |
---|
// Let users draw IconNode objects |
Visual Basic Copy Code |
---|
' Let users draw IconNode objects |
Setting CustomNodeType and Behavior as shown above specifies that IconNode instances should be created when users draw on the diagram canvas.