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

The class for drag-drop linking operation behaviors for the RadGanttView control.

Definition

Namespace:Telerik.Windows.Controls.GanttView

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

C#
public class GanttDragDependenciesBehavior : SchedulingLinkBehavior, ISchedulingLinkBehavior

Inheritance: objectPlatformIndependentFreezableSchedulingLinkBehaviorGanttDragDependenciesBehavior

Implements: ISchedulingLinkBehavior

Inherited Members SchedulingLinkBehavior.CanStartLink(SchedulingLinkState)PlatformIndependentFreezable.CreateInstanceCore()

Constructors

C#
public GanttDragDependenciesBehavior()

Methods

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

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

SchedulingLinkState identifying the current link operation.

Returns:

bool

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

Overrides: SchedulingLinkBehavior.CanLink(SchedulingLinkState)

Remarks:

This method is called on every mouse move.

When implemented in a derived class, creates a new instance of the Telerik.Windows.Core.PlatformIndependentFreezable derived class.

C#
protected override PlatformIndependentFreezable CreateInstanceOverride()
Returns:

PlatformIndependentFreezable

The new instance.

Overrides: PlatformIndependentFreezable.CreateInstanceOverride()

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

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

SchedulingLinkState that provides context for the current operation.

Overrides: SchedulingLinkBehavior.Link(SchedulingLinkState)

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 override void LinkCanceled(SchedulingLinkState state)
Parameters:stateSchedulingLinkState

SchedulingLinkState that provides context for the current operation.

Overrides: SchedulingLinkBehavior.LinkCanceled(SchedulingLinkState)

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.

C#
protected static bool TryToLink(SchedulingLinkState state)
Parameters:stateSchedulingLinkStateReturns:

bool