I write a class Scope inherit UserControl. I use some Scope to draw some figures that have the same time stamp. So I want to scroll all Scope when I scroll one of them.
I think I just make OnScroll method static, but it’s not work.
What should I do?
Any advice is welcome.
I would have a CompositeScroll class with method AddScrollbar. This class suscribes to the OnScroll of each scrollbar you add and make the others change its position in there. Something like this:
This is an idea, you can change the Scrollbar type with the one you are using that contains teh scrollbars (Maybe a plain old UserControl).
Hope it helps.