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

RadDocking with Prism+MEF

3 Answers 62 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nohinn
Top achievements
Rank 1
Nohinn asked on 07 Apr 2011, 11:59 AM
I downloaded the code sample from another thread  (http://www.telerik.com/community/forums/silverlight/docking/unpin-pin-radpane-losing-content-in-new-bits.aspx#1584752)
I would be interested about loading for example the view from ModuleA twice (though it could be n-times).
How could I do that?

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 13 Apr 2011, 09:40 AM
Hello,

 
We are not allowed to register one and same View in one Module. Each View should be different. However, you could register many Views in a Module and activate them when it is needed.
In the Shell we load only ModuleA. This module "knows" the views, registered to the region and place them into the Region. Please, refer to the following link for more detailed information about PRISM - http://msdn.microsoft.com/en-us/library/gg406140.aspx

Could you please let us know why do you need to load one and same view twice? I am glad to assist you further.

Best wishes,
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
0
Nohinn
Top achievements
Rank 1
answered on 13 Apr 2011, 11:00 AM
I would need to let the user load the same view (different instances) twice because in the application I'm working right now I would like to let the user have in one raddocumentpane one instance of a module, and in another raddocumentpane another instance of the same module so he can copy any info from one pane to the other.
But just not only twice, it can be N-times (if possible).
0
George
Telerik team
answered on 18 Apr 2011, 02:57 PM
Hello,

Thank you for the additional information, I understand now, but I am afraid this would be impossible. The PRISM uses the singleton pattern to create its Views and only one instance of each View is alive. Please, check the link that I sent for more information. 


Kind regards,
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
Nohinn
Top achievements
Rank 1
Answers by
George
Telerik team
Nohinn
Top achievements
Rank 1
Share this question
or