How can I make the entire timeline event launch the event details pop-up window?

Jul 21, 2010 at 3:40 PM
I've implemented this timeline on a machine that has a touch screen. Touching the "more" link can be cumbersome, so I'd like to make the entire timeline event be the touch point for displaying the event details pop-up window. How can I include the MouseLeftButtonDown event into the StackPanel so that touching a timeline event will cause the event details window to be displayed?
Jul 21, 2010 at 4:06 PM
I've found one way to make this work, but I don't know if it is the best way to make it happen. Within the TimelineBuilder.cs class I created a new instace of a Grid control called grid. Then I retreive the "EventTemplateRoot" for each grid instance (e.g. grid = (Grid)element.FindName("EventTemplateRoot");). Finally, I set the grid instance's MouseLeftButtonDown event (e.g. grid.MouseLeftButtonDown += m_parent.OnMoreInfoClick;). Seems to work, but not sure if this is ideal. Thoughts?