Search
BehaviorBase Class
Remarks See Also
 






An abstract base class for types that define how the control reacts to users' actions with a mouse or other pointing devices.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public abstract class BehaviorBase : Interaction

Visual Basic  Copy Code

Public MustInherit Class BehaviorBase
    Inherits Interaction

 Remarks

Diagramming for WinUI comes with several predefined BehaviorBase-derived classes that can be selected through the Behavior property of the Diagram class. Custom behavior objects can be assigned to the CustomBehavior property.

To define a custom behavior class, implement the StartDraw method which specifies how the control responds when a user starts to draw with the mouse. StartDraw should create a new diagram element if necessary, and return an InteractionState object that describes the interaction.

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Interaction
        MindFusion.Diagramming.BehaviorBase
            MindFusion.Diagramming.DoNothingBehavior
            MindFusion.Diagramming.DrawLinksBehavior
            MindFusion.Diagramming.DrawNodesBehavior
            MindFusion.Diagramming.LinkNodesBehavior
            MindFusion.Diagramming.ModifyBehavior
            MindFusion.Diagramming.PanBehavior
            MindFusion.Diagramming.SelectOnlyBehavior

 See Also