Perhaps I am going about this the wrong way. My timeline contains both items with a duration and items that are an instant in time. E.g. the duration items represent a project, and the instants are milestones in the project. I need to associate a duration with it's instants visually, so I am using the RowIndex to place them on the same row.
It worked fine until I introduced a TimeLineItemTemplate (below) which has a height greater than the default duration item height. The duration items appear as expected , but the instant items appear in their original vertical position.
I'm running the SDK samples browser's TimeLineItemRowIndex project, with the modifications mentioned above.
I've attached an image that shows the timeline with and without the template.
Thanks.
<
DataTemplate
x:Key
=
"TimelineWithDurationTemplate"
>
<
Border
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Grid.Row
=
"1"
Text
=
"{Binding DataItem.Title}"
Margin
=
"0,4,0,0"
/>
<
Rectangle
Grid.Row
=
"0"
Height
=
"7"
VerticalAlignment
=
"Center"
Fill
=
"BlueViolet"
/>
</
Grid
>
</
Border
>
</
DataTemplate
>