I noticed that RadDock's (2010.2.10.914) ActiveWindowChanging event has some inconsistent behaviors:
private void mainDock_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
{
//Current: radDock1.ActiveWindow
//Changing To: e.DockWindow
if (radDock1.ActiveWindow != e.DockWindow)
{
//There are at least 2 documents in radDock1
}
else
{
//There is none or only 1 document in radDock1
}
}
It would be nice if DockWindowCancelEventArgs class would have both the current and the changing-to DockWindows information.
This is useful when you have a situation where a MDI application and documents having their own RadDock components. In this scenario, when switching between documents, it would be a good idea to hide any floating windows in the existing document before switching to the changing-to document. I don't think RadDock currently has anything for this purpose.
Phi
private void mainDock_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
{
//Current: radDock1.ActiveWindow
//Changing To: e.DockWindow
if (radDock1.ActiveWindow != e.DockWindow)
{
//There are at least 2 documents in radDock1
}
else
{
//There is none or only 1 document in radDock1
}
}
It would be nice if DockWindowCancelEventArgs class would have both the current and the changing-to DockWindows information.
This is useful when you have a situation where a MDI application and documents having their own RadDock components. In this scenario, when switching between documents, it would be a good idea to hide any floating windows in the existing document before switching to the changing-to document. I don't think RadDock currently has anything for this purpose.
Phi