This is a migrated thread and some comments may be shown as answers.

Dont allow docking on certain dock controls

1 Answer 92 Views
Dock
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 30 Sep 2010, 09:31 PM
Alright I have a Dock Manager with a Docked Tabbed Window and several DockWindow's Docked to the Right Side of the Winform App. Now is there any way I can make it so it WONT allow any of my other DockWindows to be able to dock to that Tabbed document? I dont see any propertys on my inheritted DockWindow/UserDockControl.

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 01 Oct 2010, 12:08 PM
Hi John, 

You can set the allowed dock state property of any of the dock windows in code. For example: 
dockWindow.AllowedDockState = Telerik.WinControls.UI.Docking.AllowedDockState.All And _
    Not Telerik.WinControls.UI.Docking.AllowedDockState.Floating And _
    Not Telerik.WinControls.UI.Docking.AllowedDockState.TabbedDocument And _
    Not Telerik.WinControls.UI.Docking.AllowedDockState.AutoHide And _
    Not Telerik.WinControls.UI.Docking.AllowedDockState.Hidden

You may also want to take away the buttons and menus that show some of the dock options too 
dockWindow.DocumentButtons = Telerik.WinControls.UI.Docking.DocumentStripButtons.None
dockWindow.ToolCaptionButtons = Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.None

hope that helps
Richard
Tags
Dock
Asked by
John
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or