I have a and that are synced. When one or more appointments are selected in the , it updates the above by adding tasks (only the root task) to the source of the only if those tasks are not already in the list else the list is left as is.
Now sometimes when I am selecting multiple appointments the bindings on the Textblock display incorrectly in the Ganttview as seen in the before and after pics. It's the correct object behind the display UI element, only its binding seems to be boggled up for some reason. Sometimes when selecting another appointment, the UI updates correctly but most of the time it doesn't.
I modified the event container -
<ControlTemplate x:Key="EventContainerTemplate2" TargetType="telerik:EventContainer">
- that I found in Telerik's dictionaries and added the following in order to display the text on the bars:
DataItem is a GanttTask that implements the IGanttTask interface.
Here is the code that executes when appointments are selected (on selection changed event) in the ScheduleView: