Hello,
In my project I'm using a custom collection which derrives from ObservableCollection, ex. CustomGanttCollection : ObservableCollection<CustomGanttTask>
This gives me the possibility to add some extra methods...
The same way as I declared my CustomGanttCollection
, I declared my custom gantt task as: CustomGanttTask : GanttTask
Now I thought using my CustomCollection as the Collection where the ChildTask are stored in by overriding the Children property of GanttTask in my CustomGantTask like:
Offcourse I do add some tasks in my ViewModel to the children...
Although this works (no compile errors, when I take a look at the Children property everything looks fine,...) the GanttView Component won't show me the childtasks.
Is there a way that I can use my custom collection as the children's collection? The GanttView must be able to use the collection as it already uses one for the top-level tasks...
In my project I'm using a custom collection which derrives from ObservableCollection, ex. CustomGanttCollection : ObservableCollection<CustomGanttTask>
This gives me the possibility to add some extra methods...
The same way as I declared my CustomGanttCollection
, I declared my custom gantt task as: CustomGanttTask : GanttTask
Now I thought using my CustomCollection as the Collection where the ChildTask are stored in by overriding the Children property of GanttTask in my CustomGantTask like:
private
<span style=
"font-size: 14px;"
>CustomGanttCollection _children</span><br>
public
<span style=
"font-size: 14px;"
>CustomGanttCollection Children<br></span>{<br><span
class
=
"Apple-tab-span"
style=
"white-space:pre"
> </span>
get
<br><span
class
=
"Apple-tab-span"
style=
"white-space:pre"
> </span>{<br><span
class
=
"Apple-tab-span"
style=
"white-space:pre"
> </span>
return
_children;<br><span
class
=
"Apple-tab-span"
style=
"white-space:pre"
> </span>}<br>}
Offcourse I do add some tasks in my ViewModel to the children...
Although this works (no compile errors, when I take a look at the Children property everything looks fine,...) the GanttView Component won't show me the childtasks.
Is there a way that I can use my custom collection as the children's collection? The GanttView must be able to use the collection as it already uses one for the top-level tasks...