This project is read-only.

[Version 2.0] Pinning question

Oct 15, 2012 at 5:16 PM

In your example code on the 2.0 document (the second chunk of xaml), there is a LayoutAnchorable called 'Autohidden Content'.

If I click on the tab, it flies out okay and its width can be set with AutoHideWidth, but if I pin it it shrinks to a very small width, obscuring all content.  I haven't been able to find any way to set it's pinnned width.

What do I do?


Oct 18, 2012 at 6:19 PM

I think you should be able to set that width using DockWidth. Did you try that property?

Oct 18, 2012 at 8:05 PM

That property doesn't exist unfortunately :(

I looked at all the props on the container, and parent containers and couldn't find anything that worked.

Oct 18, 2012 at 8:43 PM

I can confirm that there is not a direct property to set it. Anyway a work around is to not start the anchorable inside a border anchor group. Instead I suggest to place it in an LayoutAnchorablePane and set its DockWidth to the desidered value; finally when the DockingManager is loaded call the LayoutAnchorable.ToggleAutoHide() method.



Oct 18, 2012 at 9:35 PM

Okay, do you consider this a bug?  I can report it if so.  Will try the workaround in the meantime.