Default Width of anchorable

Apr 5, 2012 at 11:30 AM
Edited Apr 25, 2012 at 8:28 AM

Hi, I have too simple questions:

 I have panels that are autohiding and when I click pin button (AnchorableAutoHideCommand), they became pinned, but they have very small width. How to set default width of LayoutAnchorablePaneControl or its model?

 I want to show title, only when the LayoutAnchorableControl is autohiding. How to determine if panel is autohiding? I'm currenty using following hack, but I really don't like it.

            <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=avalonDockControls:LayoutAnchorablePaneControl}}"
              <Setter Property="Visibility" TargetName="Header" Value="Visible" />

edit: [using v2.0]

Apr 14, 2012 at 1:12 PM

I think you are using version 2.0. In this case:

1) Use the DockWidth/Height of the container pane to set a custom value that by default is set to Auto.

2) I think you always need to restyle something so your trick can work, but now you can also use the IsAutoHidden property of the LayoutAnchorable model.