Posted 20 Apr 2011 Link to this post
Posted 21 Apr 2011 Link to this post
Posted 10 Apr 2012 Link to this post
Please note that this thread concerns RadDock for WinForms rather than RadDock for WPF. I would kindly ask you to address your question in the appropriate forum section as this will allow our community to find the qestion and its respective answer more easily there. As to the case of RadDock for WinForms, DragDropService is the way to cancel (disable) the drag and drop operations in RadDock and this is why the documentation article has been provided:
public
Form1()
{
InitializeComponent();
DragDropService service =
this
.radDock1.GetService<DragDropService>();
service.Starting +=
new
StateServiceStartingEventHandler(service_Starting);
}
void
service_Starting(
object
sender, StateServiceStartingEventArgs e)
e.Cancel =
true
;
Posted 18 Jul 2012 Link to this post
Posted 23 Jul 2012 Link to this post
This will work for DocumentWindows as well - it will not allow you to drag a DocumentWindow and drop it to another set of document windows. However, this approach will not prevent you from reordering DocumentWindows that are situated in one and the same sub container (DocumentTabStrip). Let me know if you have additional questions.
Posted 14 Sep 2012 Link to this post
Public
Sub
New
()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim
service
As
DragDropService =
Me
.radDockMain.GetService(Of DragDropService)()
AddHandler
service.Starting,
AddressOf
service_Starting
End
ByVal
sender
Object
,
e
StateServiceStartingEventArgs)
True