Change width of ChildPane in A SplitLayoutPane

First, thanks for developing this framework and for releasing it as a CPT. I've been a big fan of the Eclipse, but not of Java, so it is very exciting having this in the .NET world. CAB was a great start, but Acropolis has an intuitive "feel" to it that is missing from other frameworks I've looked at. No doubt the convergence of technologies such as .NET, WPF, and XAML have contributed to this. Keep up the good work!

Now for my question:

I'm using the SplitLayoutPane, but can't seem to adjust the size of the child panes. I have two child panes with a vertical splitter. That works great, but I want the pane on the right to fill the available space. I've tried using SplitLayoutPane.SetLength but it doesn't seem to change anything.

The SplitLayoutPane is contained in the cell of a grid in a standard WPF window. It appears that cell does fill the entire width of the window.

Thanks and let me know if you need any other information or an example.

[1004 byte] By [johnvms] at [2008-2-4]
# 1

For me SetLength actually works when I do something like that:

<Awx:SplitLayoutPane Name="splitLayoutPane" Orientation="Horizontal">

<Awx:ContentPane Awx:SplitLayoutPane.Length="300" />

<Awx:ContentPane/>

</Awx:SplitLayoutPane>

However when I collapse and expand the content pane its width changes back to the minimum size. Looks like a bug but I need to investigate further.

I undestand that what you really require is something like this

<Awx:SplitLayoutPane Name="splitLayoutPane" Orientation="Horizontal">

<Awx:ContentPane Awx:SplitLayoutPane.Length="{Binding Path=ActualWidth,ElementName=splitLayoutPane,Converter=someConverter}" />

<Awx:ContentPane/>

</Awx:SplitLayoutPane>

so your child pane resizes according to its parent. But unfortunately this doesn't work either. I'll investigate more on that and will let you know if I find anything...

AlexBulankou at 2007-10-3 > top of Msdn Tech,.NET Development,Acropolis...

.NET Development

Site Classified