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

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:

C#
public class DefaultSnapBehavior : SnapBehavior, ISnapService

Inheritance: objectSnapBehaviorDefaultSnapBehavior

Implements: ISnapService

Constructors

C#
public DefaultSnapBehavior()

Methods

Creates a new instance of the DefaultSnapBehavior.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Snaps the end.

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

The state during snap operation.

timeToSnapDateTime

The time to snap.

Returns:

DateTime

Overrides: SnapBehavior.SnapEnd(SnapData, DateTime)

Snaps the start.

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

The state during snap operation.

timeToSnapDateTime

The time to snap.

Returns:

DateTime

Overrides: SnapBehavior.SnapStart(SnapData, DateTime)