MindFusion.Wpf Pack Programmer's Guide
BehaviorBase Class
Remarks See Also
 





An abstract base class for classes that defines how Diagramming for WPF reacts to users' actions with a mouse or other pointing devices.

Namespace: MindFusion.Diagramming.Wpf.Behaviors
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public abstract class BehaviorBase : Interaction

Visual Basic  Copy Code

Public MustInherit Class BehaviorBase
    Inherits Interaction

 Remarks

Diagramming for WPF comes with several predefined behavior classes that can be selected by the Behavior property of DiagramView. 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. Implement the GetTargetNode method to let users draw connections between nodes. The SetMouseCursor method is called while the mouse moves to let you set a custom mouse cursor depending on the current mouse location.

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Wpf.Interaction
        MindFusion.Diagramming.Wpf.Behaviors.BehaviorBase
            MindFusion.Diagramming.Wpf.Behaviors.DrawLinksBehavior
            MindFusion.Diagramming.Wpf.Behaviors.DrawNodesBehavior
            MindFusion.Diagramming.Wpf.Behaviors.LinkNodesBehavior
            MindFusion.Diagramming.Wpf.Behaviors.ModifyBehavior
            MindFusion.Diagramming.Wpf.Behaviors.MoveNodesBehavior
            MindFusion.Diagramming.Wpf.Behaviors.PanBehavior
            MindFusion.Diagramming.Wpf.Behaviors.SelectOnlyBehavior
            MindFusion.Diagramming.Wpf.Behaviors.ZoomBehavior

 See Also

BehaviorBase Members
MindFusion.Diagramming.Wpf.Behaviors Namespace