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

Widget Header + Prism Region + Floating Window

1 Answer 83 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 08 Jun 2015, 01:44 PM

Hi Telerik Team,

 We have a several Widgets in Docking Control. Most Widgets have a PRISM Region in their Titlebar, this works good at the moment.

 But when Widgets get floated into the ToolWindow and then readded to the Docking I get exceptions from Prism etc.

 

So I wanted to ask how do implement A Region inside Widget Title Bar Header that support Floating and readding to the Docking.

 

Thank you

Johannes

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 11 Jun 2015, 10:29 AM
Hi Johannes,

Thank you for contacting us.

Such issue could be observed if a region is set to a RadPaneGroup instance. In the RadDocking control in order to achieve flawless floating and docking of any of the control's RadPane instances the following mechanism is implemented:
  • When a docked RadPane is being floated it is removed from its RadPaneGroup. This is where the connection with the region could be lost if a PaneGroup is set as a region.
  • A new RadPaneGroup is created by the control's GeneratedItemsFactory.
  • The floated RadPane is added to that new group.
  • A new RadSplitContainer is created and the new group is added to it.
  • A new ToolWindow instance is created and the new split container is added to it.
  • Finally the window is added to the RadDocking control.

In that process the old RadPaneGroup which is used as a region is lost as it is never moved and is left in docked state in the control.

When using the RadDocking control with PRISM it is recommended to use the whole control as a region. This way the region will never be lost. You can take a look at our "ShellPrism" example from our GitHub repository which demonstrates this approach. Another approach could be to use the RadPane instance as a region and add a ContentControl inside its Content which will be further used by the PRISM library.

Hope this is helpful. If we have missed something please let us know.


Regards,
Vladi
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Docking
Asked by
Johannes
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or