Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
XamDockManager tab content creation policy
posted

Hi,

        I have a XamDockManager working as MDI.  My problem is:

 I load a view in a  tab “A”, this view contains a control (I’ll call it “X” ), this control “X” has a collection.  From another process I fire an event that is being listened by this control “X”.  What I noticed is,  if I open another tab and then return to the tab “A”, the view contained in this tab is recreated and so is the control “X” (constructor is called again), therefore the collection is null.  My question is:  Is this the right behavior? If it is how can I avoid it from a tab or control perspective? Or Is there a work around I could do?

Henry Smith,