Alternative Dock Options

I read that I canโ€™t have a scroll of the dock, so Iโ€™m looking for alternatives

I want to have many slider controls (an unknown number) from left to right in some kind of panel that can scroll so that I can view all the sliders. I tried with the dock panel, but of course it didn't work. What can I do to do work with the docking station or replacing the docking panel (the replacement would have to support child elements)?

Thank!

EDIT: http://i.stack.imgur.com/J5a4u.png

here is the idea, but she needs to scroll horizontally

David Brunelle works, but not quite what I want. Id like a scroll bar that sits on top of the control and is not attached to the bottom of the window.

+3
source share
2 answers

I'm not sure I understand, but you can use the panel in ScrollViewer

Something like that:

<ScrollViewer VerticalScrollBarVisibility="Auto">

      <StackPanel  Margin="2,2,2,2">
      ...
      </StackPanel>
</ScrollViewer>

This will allow you to scroll vertically. You can do the same for horizontal scrolling. I don't know if this will work with the dock, but I know that this happens with the stack panel.

Hope this helps.

+3
source

I would use ListBox, since it will handle the scroll part for you, then you can set ItemTemplate(if you want) and you can use data binding (using ObservableCollectionorDataView

0
source

All Articles