Disable top / bottom docking

Oct 21, 2011 at 5:29 PM

How do I disable docking on the top and bottom and only allow docking on the right or the left?


Oct 24, 2011 at 9:11 PM

I think the dep property Dockable style defines how a content can be dropped on the manager, in case of the DockableContent class it is defined as DockableStyle.Dockable, see the enum DockableStyle for your custom left/right one (havn't tested it though)

        public static readonly DependencyProperty DockableStyleProperty =
            DependencyProperty.Register("DockableStyle", typeof(DockableStyle), typeof(DockableContent),
                new FrameworkPropertyMetadata(DockableStyle.Dockable));