Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

Commented Issue: [Version 2.0] DockWidth and DockHeight not working without Documents in the layout [15235]

$
0
0
I have tested DockWidth and DockHeight, they seem to work on the Visual Studio Designer but when I start the application the dimensions of the panels are uniform divided.
I have tested on LayoutRoot, LayoutAnchorablePaneGroup, LayoutAnchorablePane, it seem not working if in the series of item to dimension (on vertical direction or Horizontal direction) there are only Anchorbles and not documents.
In the sample project attached I need to have a right column with an anchorableGroup (with the B and C panels) that I want to assign a DockWidth=100 and the panel B must have a DockHeight=50
Comments: ** Comment from web user: adospace **

Set first anchorable DockHeight to *, second anchorable DockHeight to 2*:
<avalonDock:LayoutAnchorablePaneGroup Orientation="Vertical" DockWidth="200">
<avalonDock:LayoutAnchorablePane DockHeight="*">
<avalonDock:LayoutAnchorable Title="B">
<Border Background="Orange">
<StackPanel>
<TextBlock Text="DockWidth = 200 ==> OK"/>
<TextBlock Text="DockHeight != 100 ==> KO" Background="Red"/>
</StackPanel>
</Border>
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutAnchorablePane DockHeight="2*">
<avalonDock:LayoutAnchorable Title="C">
<Border Background="Yellow"/>
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorablePane>
</avalonDock:LayoutAnchorablePaneGroup>


Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>