Class XySegmentDraggingBase
XySegmentDraggingBase is abstract class which is used to allow, drag a segment in a chart series.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class XySegmentDraggingBase : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxes
Constructors
XySegmentDraggingBase()
Declaration
protected XySegmentDraggingBase()
Fields
DragCancelKeyModifiersProperty
The DependencyProperty for DragCancelKeyModifiers property. .
Declaration
public static readonly DependencyProperty DragCancelKeyModifiersProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
draggedValue
Declaration
protected double draggedValue
Field Value
Type |
---|
System.Double |
DragTooltipStyleProperty
Declaration
public static readonly DependencyProperty DragTooltipStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DragTooltipTemplateProperty
The DependencyProperty for DragTooltipTemplate property. .
Declaration
public static readonly DependencyProperty DragTooltipTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableDragTooltipProperty
The DependencyProperty for EnableDragTooltip property. .
Declaration
public static readonly DependencyProperty EnableDragTooltipProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableSegmentDraggingProperty
The DependencyProperty for EnableSegmentDragging property. .
Declaration
public static readonly DependencyProperty EnableSegmentDraggingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RoundToDecimalProperty
The DependencyProperty for RoundToDecimal property. .
Declaration
public static readonly DependencyProperty RoundToDecimalProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SnapToPointProperty
The DependencyProperty for SnapToPoint property. .
Declaration
public static readonly DependencyProperty SnapToPointProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpdateSourceProperty
The DependencyProperty for UpdateSource property. .
Declaration
public static readonly DependencyProperty UpdateSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
DragCancelKeyModifiers
Gets or sets a value indicating whether to cancel the dragging
Declaration
public ModifierKeys DragCancelKeyModifiers { get; set; }
Property Value
Type |
---|
System.Windows.Input.ModifierKeys |
DraggedValue
Gets or sets a value for dragged yvalue.
Declaration
protected double DraggedValue { get; set; }
Property Value
Type |
---|
System.Double |
DraggedXValue
Gets or sets a value for dragged xvalue.
Declaration
protected double DraggedXValue { get; set; }
Property Value
Type |
---|
System.Double |
DragInfo
Gets or sets the dragging info.
Declaration
protected ChartDragPointinfo DragInfo { get; set; }
Property Value
Type |
---|
ChartDragPointinfo |
DragSpliter
Gets or sets a value for drag splitter.
Declaration
protected ContentControl DragSpliter { get; set; }
Property Value
Type |
---|
System.Windows.Controls.ContentControl |
DragTooltipStyle
Gets or sets dragging tooltip style.
Declaration
public ChartDragTooltipStyle DragTooltipStyle { get; set; }
Property Value
Type |
---|
ChartDragTooltipStyle |
DragTooltipTemplate
Gets or sets the custom template for dragging tooltip/>.
Declaration
public DataTemplate DragTooltipTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | This accepts a DataTemplate. |
EllipseAnimation
Gets or sets ellipse animation.
Declaration
protected Storyboard EllipseAnimation { get; set; }
Property Value
Type |
---|
System.Windows.Media.Animation.Storyboard |
EnableDragTooltip
Gets or sets a value indicating whether dragging tooltip is enabled or not.
Declaration
public bool EnableDragTooltip { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableSegmentDragging
Gets or sets a value indicating whether segment dragging is enabled or not.
Declaration
public bool EnableSegmentDragging { get; set; }
Property Value
Type |
---|
System.Boolean |
RoundToDecimal
Gets or sets a property used to round the decimal value.
Declaration
public int RoundToDecimal { get; set; }
Property Value
Type |
---|
System.Int32 |
SegmentIndex
Gets or sets a segment index.
Declaration
protected int SegmentIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
SnapToPoint
Gets or sets snap point.
Declaration
public SnapToPoint SnapToPoint { get; set; }
Property Value
Type |
---|
SnapToPoint |
Tooltip
Gets or sets the dragging tooltip.
Declaration
protected ContentControl Tooltip { get; set; }
Property Value
Type |
---|
System.Windows.Controls.ContentControl |
UpdateSource
Gets or sets a value indicating whether to update the dragging values in source
Declaration
public bool UpdateSource { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
OnChartDragDelta(Point, Object)
Method implementation for ChartDragDelta.
Declaration
protected virtual void OnChartDragDelta(Point mousePos, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePos | point |
System.Object | originalSource | object |
OnChartDragEnd(Point, Object)
Method implementation for ChartDragEnd
Declaration
protected virtual void OnChartDragEnd(Point mousePos, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePos | point |
System.Object | originalSource | object |
OnChartDragEntered(Point, Object)
Method implementation for ChartDragEnter.
Declaration
protected virtual void OnChartDragEntered(Point mousePos, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePos | point |
System.Object | originalSource | object |
OnChartDragExited(Point, Object)
Method implementation for ChartDragExit.
Declaration
protected virtual void OnChartDragExited(Point mousePos, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePos | point |
System.Object | originalSource | object |
OnChartDragStart(Point, Object)
Method implementation for ChartDragStart.
Declaration
protected virtual void OnChartDragStart(Point mousePos, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePos | point |
System.Object | originalSource | object |
OnMouseEnter(MouseEventArgs)
Called when mouse entered.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args |
OnMouseLeave(MouseEventArgs)
Called when mouse leave.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args |
Overrides
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called when mouse left button down.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Event args |
Overrides
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called when mouse left button up.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Event args |
Overrides
OnMouseMove(MouseEventArgs)
Called when mouse moved.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args |
Overrides
RaiseDragDelta(DragDelta)
Raises the drag delta.
Declaration
protected void RaiseDragDelta(DragDelta args)
Parameters
Type | Name | Description |
---|---|---|
DragDelta | args | The arguments. |
RaiseDragEnd(ChartDragEndEventArgs)
Raises the drag end.
Declaration
protected void RaiseDragEnd(ChartDragEndEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChartDragEndEventArgs | args | The ChartDragEndEventArgs instance containing the event data. |
RaiseDragEnter(XySegmentEnterEventArgs)
Raises the drag enter.
Declaration
protected void RaiseDragEnter(XySegmentEnterEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
XySegmentEnterEventArgs | args | The XySegmentEnterEventArgs instance containing the event data. |
RaiseDragStart(ChartDragStartEventArgs)
Raises the drag start.
Declaration
protected void RaiseDragStart(ChartDragStartEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChartDragStartEventArgs | args | The ChartDragStartEventArgs instance containing the event data. |
RaisePreviewEnd(XyPreviewEndEventArgs)
Raises the preview end.
Declaration
protected void RaisePreviewEnd(XyPreviewEndEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
XyPreviewEndEventArgs | args | The XyPreviewEndEventArgs instance containing the event data. |
ResetDraggingElements(String, Boolean)
Resets the dragging elements.
Declaration
protected virtual void ResetDraggingElements(string reason, bool dragEndEvent)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | The reason. |
System.Boolean | dragEndEvent | if set to |
ResetDragSpliter()
Resets the drag spliter.
Declaration
protected virtual void ResetDragSpliter()
UpdateUnderLayingModel(String, Int32, Object)
Updates the under laying model.
Declaration
protected void UpdateUnderLayingModel(string path, int index, object updatedData)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path. |
System.Int32 | index | The index. |
System.Object | updatedData | The updated data. |
Events
DragDelta
Occurs when [drag delta].
Declaration
public event EventHandler<DragDelta> DragDelta
Event Type
Type |
---|
System.EventHandler<DragDelta> |
DragEnd
Occurs when [drag end].
Declaration
public event EventHandler<ChartDragEndEventArgs> DragEnd
Event Type
Type |
---|
System.EventHandler<ChartDragEndEventArgs> |
DragStart
Occurs when [drag start].
Declaration
public event EventHandler<ChartDragStartEventArgs> DragStart
Event Type
Type |
---|
System.EventHandler<ChartDragStartEventArgs> |
PreviewDragEnd
Occurs when [preview drag end].
Declaration
public event EventHandler<XyPreviewEndEventArgs> PreviewDragEnd
Event Type
Type |
---|
System.EventHandler<XyPreviewEndEventArgs> |
SegmentEnter
Occurs when [segment enter].
Declaration
public event EventHandler<XySegmentEnterEventArgs> SegmentEnter
Event Type
Type |
---|
System.EventHandler<XySegmentEnterEventArgs> |