This project is read-only.

Default Width of anchorable

Apr 5, 2012 at 12:30 PM
Edited Apr 25, 2012 at 9:28 AM

Hi, I have too simple questions:

1.
 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?


2.
 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}}"
                         Value="{x:Null}">
              <Setter Property="Visibility" TargetName="Header" Value="Visible" />
            </DataTrigger>

edit: [using v2.0]

Apr 14, 2012 at 2: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.

Ado