Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Show a red line on todays date and time in timeline for DateTimeAxis
posted

Hi

Is there any way to show a red line telling the user where in the timeline todays date (and time) is so that they can navigate the timeline more easy?

//hannes

Parents
  • 34510
    Verified Answer
    Offline posted

    Hello Hannes,

    I've attached a sample demonstrating a way you can implement this.  I modified the default template for the timeline scene slightly to include a Canvas where the red line would reside.  This made placing it properly in code easier.

    I then handled the SizeChanged and ZoomChanged events so that I can recalculate the line position.  This way the line remains in the correct spot while resizing the control or changing the zoom.

    Let me know if you have any questions.

    WpfApplication1.zip
Reply Children