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

GetActivePane, ActivePaneChanged

3 Answers 322 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Eric Belanger
Top achievements
Rank 1
Eric Belanger asked on 09 May 2010, 06:55 PM
Hi,

I need to detect when the ActivePane has changed.  And i also need to know how to get the current active pane.  It is important for my project.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Eric Belanger
Top achievements
Rank 1
answered on 09 May 2010, 07:06 PM
And i also need to do a RadPane.SetAsActive();
0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2010, 01:45 PM
Hi Eric,

 The feature request is logged. The title of the PITS item is "Add a PaneActivated event and an ActivePane property to the Docking control and Activate method to the RadPane control.".

Best wishes,
Miroslav Nedyalkov
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.
0
Kais
Top achievements
Rank 1
answered on 14 Mar 2011, 09:54 AM
FYI I have pretty much resolved ActivePane by handlnig the following events:

RadDocking.PreviewMouseUp
 - get e.Source to give RadPane or RadPaneGroup which raised the event
 - if RadPaneGroup, then the selected pane in the group is active, else the pane is active

RadPane.IsSelected
 - Listen to IsSelected changed via binding or DependencyPropertyDescriptor.AddValueChanged
 - the most recently selected pane becomes active (note more than one pane can be Selected due to radpanegroups)

Then I create a service which tracks the most recently selected pane (or rather its content's ViewModel)

Its a bit buggy so of course would prefer to see it implemented in RadDocking though!! :)
Tags
Docking
Asked by
Eric Belanger
Top achievements
Rank 1
Answers by
Eric Belanger
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Kais
Top achievements
Rank 1
Share this question
or