Class
DefaultSnapBehavior

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

Definition

Namespace:Telerik.UI.Xaml.Controls.Scheduler

Assembly:Telerik.WinUI.Controls.dll

Syntax:

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

Inheritance: objectSnapBehaviorDefaultSnapBehavior

Implements: ISnapService

Constructors

DefaultSnapBehavior()

Declaration

cs-api-definition
public DefaultSnapBehavior()

Methods

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)