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

The base class for drag-drop linking operation behaviors for the scheduling controls.

Definition

Namespace:Telerik.Windows.Controls.Scheduling

Assembly:Telerik.Windows.Scheduling.Core.dll

Syntax:

C#
public abstract class SchedulingLinkBehavior : PlatformIndependentFreezable, ISchedulingLinkBehavior

Inheritance: objectPlatformIndependentFreezableSchedulingLinkBehavior

Derived Classes: GanttDragDependenciesBehavior

Implements: ISchedulingLinkBehavior

Inherited Members PlatformIndependentFreezable.CreateInstanceCore()PlatformIndependentFreezable.CreateInstanceOverride()

Constructors

C#
protected SchedulingLinkBehavior()

Methods

Gets the value specifying whether the link operation can be completed, or not.

C#
protected virtual bool CanLink(SchedulingLinkState state)
Parameters:stateSchedulingLinkState

SchedulingLinkState identifying the current link operation.

Returns:

bool

True when the link operation can be finished, otherwise false.

Remarks:

This method is called on every mouse move.

Gets the value specifying whether the link operation can be started, or not.

C#
protected virtual bool CanStartLink(SchedulingLinkState state)
Parameters:stateSchedulingLinkState

SchedulingLinkState that provides context for the current link operation.

Returns:

bool

True when the link operation can be started, otherwise false.

Remarks:

This method is called only when the link operation initiated.

Applies the effect of the link operation when it is successful.

C#
protected abstract void Link(SchedulingLinkState state)
Parameters:stateSchedulingLinkState

SchedulingLinkState that provides context for the current operation.

Remarks:

This method is called only if the link operation is successful and it is meant to do the actual link.

When overridden in a derived class cleans up a cancelled link operation. This method is called only in the context of the link source control.

C#
protected abstract void LinkCanceled(SchedulingLinkState state)
Parameters:stateSchedulingLinkState

SchedulingLinkState that provides context for the current operation.

Remarks:

This method is called only when the link operation is cancelled by the user. If this method is called, the Link method is not called.