Minor fix to display timelines with higher resolution

Developer
Nov 20, 2009 at 10:11 PM

I've imported the timeline into VS2010 and made it into a standard WPF user control.  In order to display a 'seconds' and 'seconds10' band I altered:

 

public TimeSpan PixelsToTimeSpan(
            double pixels
        )
        {
            return new TimeSpan(0, 0, 0, (int)((pixels / ColumnPixelWidth) *
                ColumnTimeWidth.TotalSeconds), (int)((pixels / ColumnPixelWidth) *
                ColumnTimeWidth.TotalMilliseconds));
        }

 

That will allow the seconds band to move (and possibly a milliseconds band as well).  Thanks!

Coordinator
Dec 16, 2009 at 12:26 AM

Please file a bug for this issue and provide (please) xaml that you used and if possible data xml. Thank you very much for the feedback.