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

Inconsistent Behavior for ActiveWindowChanging event

1 Answer 62 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Phi
Top achievements
Rank 1
Phi asked on 27 Oct 2010, 09:39 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 02 Nov 2010, 12:37 PM
Hello Phi,

We modified the event arguments and now they contain the OldWindow and the NewWindow. This improvement will be a part of Q3 2010 release scheduled for the first half of this month.

Thank you for the feedback and suggestions. Your Telerik points have been updated.

Sincerely yours,
Julian Benkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Dock
Asked by
Phi
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or