Back to Devexpress

TasksScheduledEventArgs Class

wpf-devexpress-dot-xpf-dot-gantt-ec87984c.md

latest2.5 KB
Original Source

TasksScheduledEventArgs Class

Provides data for the TasksScheduled event.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public sealed class TasksScheduledEventArgs :
    RoutedEventArgs
vb
Public NotInheritable Class TasksScheduledEventArgs
    Inherits RoutedEventArgs

TasksScheduledEventArgs is the data class for the following events:

Remarks

The TasksScheduled event allows you to rollback the edit changes if they have become the reason for invalid links.

Use the event arguments’ InvalidPredecessorLinks property to access a collection of invalid links. Set the event arguments’ RollbackChanges property to true to rollback the latest changes.

xaml
<dxgn:GanttControl ...>
    <dxgn:GanttControl.View>
        <dxgn:GanttView ... 
            TasksScheduled="GanttView_TasksScheduled">
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
csharp
private void GanttView_TasksScheduled(object sender, DevExpress.Xpf.Gantt.TasksScheduledEventArgs e) {
    if (e.InvalidPredecessorLinks.Count > 0) e.RollbackChanges = true;
}
vb
Private Sub GanttView_TasksScheduled(ByVal sender As Object, ByVal e As DevExpress.Xpf.Gantt.TasksScheduledEventArgs)
    If e.InvalidPredecessorLinks.Count > 0 Then e.RollbackChanges = True
End Sub

Inheritance

Object EventArgs RoutedEventArgs TasksScheduledEventArgs

See Also

TasksScheduledEventArgs Members

DevExpress.Xpf.Gantt Namespace