This project is read-only.

Tooltip for timeline slider should give the time, instead of saying "seek"

Topics: Windows 8 Xaml
Mar 21, 2013 at 2:13 AM
My XAML-foo isn't strong enough to find a good way to do this in my template. I experimented with something on the Ellipse along the lines of:

ToolTipService.ToolTip="{Binding Path=ViewModel.Position, RelativeSource={RelativeSource TemplatedParent, Converter=blahblah}}"

... but there appear to be too many layers of parent templates for this to go through to the control panel.

Any ideas?
Jan 25, 2016 at 4:27 PM
Been playing with this, and it seems you first need to:
  • handle the ControlPanel.Loaded event, then
  • wait for the Timeline.Loaded event, then call Timeline.ApplyTemplate()
  • find the Grid element under the Timeline element
  • call ToolTipService.SetToolTip(grid, null) on it to clear the tooltip
and then your customized tooltip on Timeline is ready to show up!