Class
DefaultSnapBehavior

A class representing the behavior that is used to snap time during drag and resize operation.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class DefaultSnapBehavior : SnapBehavior, ISnapService

Inheritance: objectSnapBehaviorDefaultSnapBehavior

Implements: ISnapService

Constructors

DefaultSnapBehavior()

Declaration

cs-api-definition
public DefaultSnapBehavior()

Methods

CreateInstanceCore()

Creates a new instance of the DefaultSnapBehavior.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

SnapEnd(SnapData, DateTime)

Snaps the end.

Declaration

cs-api-definition
public override DateTime SnapEnd(SnapData snapData, DateTime timeToSnap)

Parameters

snapData

SnapData

The state during snap operation.

timeToSnap

DateTime

The time to snap.

Returns

DateTime

Overrides SnapBehavior.SnapEnd(SnapData, DateTime)

SnapStart(SnapData, DateTime)

Snaps the start.

Declaration

cs-api-definition
public override DateTime SnapStart(SnapData snapData, DateTime timeToSnap)

Parameters

snapData

SnapData

The state during snap operation.

timeToSnap

DateTime

The time to snap.

Returns

DateTime

Overrides SnapBehavior.SnapStart(SnapData, DateTime)