Class
MonthViewSnapBehavior

A class representing the behavior that is used to snap appointment start/end during drag and resize operation in MonthView.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

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

Inheritance: objectSnapBehaviorMonthViewSnapBehavior

Implements: ISnapService

Constructors

MonthViewSnapBehavior()

Declaration

cs-api-definition
public MonthViewSnapBehavior()

Methods

CreateInstanceCore()

Creates a new instance of the MonthViewSnapBehavior.

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)