I've tried using a RadContextMenu with the RadTimeline, but it doesn't seem like I can get access to the clicked Timeline DataItem through either the Opened or Click events. Is there another way I can access the item that was clicked on in these events?
<
telerik:RadTimeline
x:Name
=
"timelineControl"
PeriodStart
=
"{Binding TimelinePeriodStart, Mode=TwoWay}"
PeriodEnd
=
"{Binding TimelinePeriodEnd, Mode=TwoWay}"
StartPath
=
"StartTime"
DurationPath
=
"Duration"
GroupPath
=
"BlockId"
GroupExpandMode
=
"None"
ItemsSource
=
"{Binding TimelineItems}"
ItemTemplateSelector
=
"{StaticResource timelineTemplateSelector}"
VisiblePeriodStart
=
"{Binding TimelineVisiblePeriodStart, Mode=TwoWay}"
VisiblePeriodEnd
=
"{Binding TimelineVisiblePeriodEnd, Mode=TwoWay}"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"TimelineContextMenu"
Opened
=
"TimelineContextMenu_OnOpened"
>
<
telerik:RadMenuItem
Click
=
"RadMenuItem_OnClick"
>
<
telerik:RadMenuItem.Header
>
<
TextBlock
FontSize
=
"14"
>Remove from Timeline</
TextBlock
>
</
telerik:RadMenuItem.Header
>
</
telerik:RadMenuItem
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>