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

RadDocking + PRISM + floating views

1 Answer 54 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alex Galie
Top achievements
Rank 2
Alex Galie asked on 11 Apr 2011, 04:38 PM
I need some help with RadDocking and PRISM regions when it comes to making panes floating. I've read here that when a pane is set to float, it is undocked and hosted in a floating ToolWindow control. I'm guessing here that it is introduced in a new RadPaneGroup because when a pane is closed I'm doing some cleaning up in my code, but if I close it when floating it can't find the region specific attached properties and raises an exception.

Is there an event I didn't find that I can use when a pane is docked/undocked ? I need to gain access to that ToolWindow and make him think it's in the right region (technical explanation ™).

Or is this scenario handled somehow else ? (having floating windows with views registered to specific RadPaneGroup regions)

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 15 Apr 2011, 09:24 AM
Hi Alex,

 
Your approach is correct. In order to get the ToolWindow, I would suggest you handling RadDocking.PaneStateChangedEvent where the RadRoutedEventArg.OriginalSource keeps a RadPane instance. You could check wheather this pane is floating and if it is so, you could get the ToolWindow using the RadPane.ParentOfType<ToolWindow>() method.

I hope this helps.

All the best,
George
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
Docking
Asked by
Alex Galie
Top achievements
Rank 2
Answers by
George
Telerik team
Share this question
or