I'm trying to display some of the Data as Text in my TimelineItems, but all my Template can access is an Object of type TimelineDataItem
System.Windows.Data Error: 40 : BindingExpression path error: 'Iteration' property not found on 'object' ''TimelineDataItem'
TimelineDataItem has no Property that holds the original value object. In the ToolTip I can access the original Data object, though.
Can anyone tell me please how I can get the original Data in the template?
<ControlTemplate TargetType="{x:Type telerik:TimelineItemControl}">
<Border Background="#01FFFFFF" Height="30" Margin="0,5,0,0">
<Grid>
<Rectangle x:Name="timelineItem" Height="29" Stroke="#FFCBCBCB" VerticalAlignment="Center">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF4786AA" Offset="0"/>
<GradientStop Color="#FF163D59" Offset="1"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<TextBlock Text="{Binding Path=Iteration.Name}"></TextBlock>
</Grid>
</Border>
</ControlTemplate>
System.Windows.Data Error: 40 : BindingExpression path error: 'Iteration' property not found on 'object' ''TimelineDataItem'
TimelineDataItem has no Property that holds the original value object. In the ToolTip I can access the original Data object, though.
Can anyone tell me please how I can get the original Data in the template?
<ControlTemplate TargetType="{x:Type telerik:TimelineItemControl}">
<Border Background="#01FFFFFF" Height="30" Margin="0,5,0,0">
<Grid>
<Rectangle x:Name="timelineItem" Height="29" Stroke="#FFCBCBCB" VerticalAlignment="Center">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF4786AA" Offset="0"/>
<GradientStop Color="#FF163D59" Offset="1"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<TextBlock Text="{Binding Path=Iteration.Name}"></TextBlock>
</Grid>
</Border>
</ControlTemplate>