Mar 14, 2012 at 2:10 PM
Edited Mar 14, 2012 at 2:56 PM
Thanks for the reply.. I was able to get the mouse down event working but i was unable to cast back to get the id of the timelinedisplayevent that was clicked.
This is the code that i am using to get the mouse down event working when a timeline event is clicked:
addhandler mytimeline.oneventcreated, addressof myeventcreated
Private sub myeventcreated(byval element as frameworkelement, de as timeline displayevent)
Addhandler element.mouseleftbuttonup, addressof individualeventclicked
Private sub individualeventclicked
'This fires when i click on a timeline event but i cant seem to get hold of the timelineevents id (or anything for that matter).
Is there a way to get to the events.id or description from here?
I found that this would get me the timelineevent id =
Dim temp1 = Directcast(sender, Grid)
Dim temp2 = temp1.datacontext
Dim myid = temp2.id
Is this the correct way to do it or is there a better way?