Hi Guys,
I'm using SplitPane and i'm facing a problem.
The split pane i have is just like VS toolbox, it contains items that can be dragged to certain places in my application.
Basically - it is a list of items (ListBox).
When the split panes loads it gets the width from the context ListBox.
The content list box items have different width, and since i'm working with the virtualizing stack panel (i must have it) - when the user scrolls the pane keep resizing according to the maximum size of the list box items.
I tried endlessly looking for a way to set the initial size of the split pane and make the list box get this size when it loads. I want the user to be able to control this later ofcourse.
I notices that once the i change the size of the split pane - it get fixed, but until i do that - it is bad .... :-(
Any workaround for this problem will be appriciated as well.
Thanx,
Gili
no one?!
Hi Gili,
Have you, by any chance, tried to bind your listbox's width to the width of the ContentPane in which it's placed. I have the following code and the ContentPane does not resize to the width of the listbox.
<igDock:ContentPane x:Name="cp1" Header="Pane1" Width="350" >
<ListBox x:Name="lstTest" Width="{Binding ElementName=cp1, Path=ActualWidth, Mode=OneWay}">
<ListBoxItem>12345678901234567890123456789012345678901234567890</ListBoxItem>
<ListBoxItem>1234567890123456789012345678901234567890</ListBoxItem>
<ListBoxItem>1234567890123456789012345678901234567890123456789012345678901234567890</ListBoxItem>
</ListBox>
</igDock:ContentPane>
Hope this helps.