Hide/Show TimelineBand

Sep 13, 2010 at 10:49 PM
Edited Sep 14, 2010 at 12:25 AM

How I can hide and show the Timelinebands, I want to add a check box, when the user click it, one timelineband are hiden and the other timelineband is set to Main.

Coordinator
Sep 13, 2010 at 11:56 PM

you can hide timeline band by using Visibility property.

Sep 14, 2010 at 12:28 AM

I used this code

Me.auditview.Band1.Visibility = System.Windows.Visibility.Collapsed
Me.auditview.Band2.IsMainBand = True
Me.auditview.timeline.ResetEvents(m_strXML)
Me.auditview.timeline.Reload()

but the result is, a big band in white, and the info in the band 2, but the band 2 is small

 

 

Coordinator
Sep 14, 2010 at 5:30 AM

As of now main band cannot be changed once assigned. If you need to do things like that take a look in examples folder, there is an example there where bands are generated at runtime.