Customizing new tasks or new predecessors created within Gantt Chart Library and Project Management Library for WPF

In order to customize the new task or new predecessor created through NewTask or NewPredecessor events within Gantt Chart Library for WPF or Project Management Library for WPF you should set the Item property value of the NewItemEventArguments object instance received as a paramter of your event handler to the custom new item you need.

Furthermore, you can use the Parameters collection included within the event arguments to determine property values that should be applied to the newly created item, and/or to the ParentItem property to identify the parent task item of the new predecessor.