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

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:

C#
public class MonthViewSnapBehavior : SnapBehavior, ISnapService

Inheritance: objectSnapBehaviorMonthViewSnapBehavior

Implements: ISnapService

Constructors

C#
public MonthViewSnapBehavior()

Methods

Creates a new instance of the MonthViewSnapBehavior.

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)