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

RadDocking Event for new RadPaneGroup

5 Answers 139 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 03 Jan 2011, 08:32 PM
Hi,
Is there an event I can handle to determine when a new RadPaneGroup has been added to a RadDocking control?
Currently, I'm using RadPaneGroup.GotFocus event to determine which pane is currently selected.  This works fine for the groups that were in place in the XAML.  However, if I drag/drop a RadPane into a new container/group, the dynamically created RadPaneGroup is not "wired" up for GotFocus, and so I am unable to track selected pane(s) in the dynamic group.  Is there a way to track when a RadPaneGroup is dynamically added to a RadDocking instance?
Is there another way I should be doing this?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 05 Jan 2011, 04:14 PM
Hi Aaron,

Thank you for contacting us.

As far as I have understood, you need to be notified when a Pane changes its state, is that correct? You can achieve that by hooking to the PaneStateChange event.

Hope this information helps. If you have further questions please let us know.

Greetings,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Aaron
Top achievements
Rank 1
answered on 05 Jan 2011, 05:26 PM
Thanks for the response.
Is it possible to use PaneStateChange to detect when a new RadPane has been added to the RadDocking control?
0
Konstantina
Telerik team
answered on 06 Jan 2011, 12:29 PM
Hello Aaron,

This scenario is not supported, as it is assumed that the creating of the Pane is something that the developer is aware of and there is no point for firing an event about this. Could you please give us some more details about your case: how a new Pane is added and why do you need to know when a new Pane is added to the RadDocking control. In that way we will be able to provide you with a possible solution.

Looking forward to your reply.

Greetings,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Aaron
Top achievements
Rank 1
answered on 06 Jan 2011, 05:25 PM
Hi,
Thanks for the response.
Essentially, I'm looking for comprehensive way to track the currently selected/focused RadPane in the RadDocking control.  I've tried using LayoutChangeStarted event, but that does not get triggered when a new pane is added (only when a pane is manually selected).  I'm trying to find an event that I can use that will tell me when the focused pane changes (including when a new RadPane is added to the Docking control).  I had some success with using the RadPaneGroup.GotFocus event, but ran into a problem when a new RadPaneGroup was created dynamically when the end user drag/drop a pane into a group (as the new group was not wired up for GotFocus event).
Is there an event that I can use to accomplish this?

Thanks.
0
Konstantina
Telerik team
answered on 11 Jan 2011, 01:20 PM
Hi Aaron,

You can try using the SelectionChanged event, which is routed.

Please let us know if that helped.

Kind regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Docking
Asked by
Aaron
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or