New to Telerik UI for WPFStart a free 30-day trial

An abstract 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:

C#
public abstract class SnapBehavior : Freezable, ISnapService

Inheritance: objectSnapBehavior

Derived Classes: DefaultSnapBehaviorMonthViewSnapBehavior

Implements: ISnapService

Constructors

C#
protected SnapBehavior()

Methods

Snaps the end.

C#
public abstract DateTime SnapEnd(SnapData snapData, DateTime timeToSnap)
Parameters:snapDataSnapData

The state during snap operation.

timeToSnapDateTime

The time to snap.

Returns:

DateTime

Implements: ISnapService.SnapEnd(SnapData, DateTime)

Snaps the start.

C#
public abstract DateTime SnapStart(SnapData snapData, DateTime timeToSnap)
Parameters:snapDataSnapData

The state during snap operation.

timeToSnapDateTime

The time to snap.

Returns:

DateTime

Implements: ISnapService.SnapStart(SnapData, DateTime)