This project is read-only.

[Version 2.0] Pinning and unpinning items has odd behavior?

Oct 13, 2012 at 1:34 AM
Edited Oct 13, 2012 at 1:50 AM

I have two panes with a vertical separator.  They are both LayoutAnchorablePanes.  If I click the 'Pin' icon on the one on the left (LayoutAnchorable1), I see the hidden pane tabs appear on the right side of the application.  Not the left as I would have expected.

Clicking on the tab shows the pane on the right side, clicking the pin once more returns the pane to the left side. 

What am I doing wrong here, or how do I configure where pinning displays a hidden panes tabs?

Also- in this code, even the autohidden pane that initially appears on the left will move to the right if it becomes pinned then unpinned.  The avalondock 2.0 example code didn't do that, so I think I'm probably just not doing it right.


<avalonDock:DockingManager x:Name="dockingManager">
			<avalonDock:LayoutAnchorablePaneGroup  Orientation="Horizontal">
					<avalonDock:LayoutAnchorable Title="LayoutAnchorable1">
						<Border >
								<TextBlock Text="LayoutAnchorable1Content" />
				<avalonDock:LayoutAnchorablePane DockWidth="4.0*">
					<avalonDock:LayoutAnchorable Title="LayoutAnchorable2">
						<TextBlock Text="LayoutAnchorable2Content" />
					<avalonDock:LayoutAnchorable Title="Autohidden Content">
						<TextBox />
Oct 13, 2012 at 10:20 AM

You should add a LayoutDocumentPane somewhere, otherwise AD doesn't know where anchor anchorables when are autohidden.