Hi,
Currently process works as below
1. On button click, new tool window(created dynamically) opened with content.
private ToolWindow CreateToolWindowPanel(string title)
{
var panel = new ToolWindow
{
CloseAction = DockWindowCloseAction.Close,
Text = title + " " + counter++,
Name = "tw " + counter++,
ToolCaptionButtons = ToolStripCaptionButtons.Close,
};
return panel;
}
on Button MouseDown following code written
var bounds = new Rectangle(Cursor.Position.X - 30, Cursor.Position.Y - 10, 400, 400);
var panel = CreateToolWindowPanel("pnl");
radDock1.FloatWindow(panel, bounds);
2. After the tool window is shown, User docking it (by dragging) to existing radDaocking control.
Requirement for changes in this process is Both step need to be done in single click.
On button click new tool window opened with dragging mode(don't release button click and drag tool window), and docked in existing radDaocking control on release of button click.
Thanks