Gets or sets the behavor of the chart control.
Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight
C#
![]() |
---|
public Behavior Behavior { get; set; } |
Visual Basic
![]() |
---|
Public Property Behavior As Behavior |
One of the Behavior enumeration values. Default value is Behavior.DoNothing.
The Behavior enumeration allows bitwise combining.
For horizontal bars the behavior should be Behavior.AllowXDrag while for vertical bars it is Behavior.AllowYDrag.
The following code allows data points in a line chart to be dragged with the mouse in all directions.
C#
![]() |
---|
lineChart1.Behavior = Behavior.AllowXDrag | Behavior.AllowYDrag; |
Visual Basic
![]() |
---|
lineChart1.Behavior = (Behavior.AllowXDrag Or Behavior.AllowYDrag) |