RadDocking with Prism+MEF

4 posts, 0 answers
  1. Nohinn
    Nohinn avatar
    167 posts
    Member since:
    Feb 2011

    Posted 07 Apr 2011 Link to this post

    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?
  2. George
    Admin
    George avatar
    1332 posts

    Posted 13 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Nohinn
    Nohinn avatar
    167 posts
    Member since:
    Feb 2011

    Posted 13 Apr 2011 Link to this post

    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).
  5. George
    Admin
    George avatar
    1332 posts

    Posted 18 Apr 2011 Link to this post

    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
Back to Top