[Version 2.0] Pinning question

Oct 15, 2012 at 4: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?

Thanks!

Oct 18, 2012 at 5:19 PM

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

Oct 18, 2012 at 7: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 7: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.

Ado

 

Oct 18, 2012 at 8:35 PM

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

Thanks!