Canel NewTask or NewPredecessor events within Gantt Chart Library and Project Management Library for WPF

In order to cancel NewTask or NewPredecessor event within Gantt Chart Library for WPF or Project Management Library for WPF you should set the Cancel property value of the NewItemEventArguments object instance received as a paramter of your event handler to true.