problem with 2 instances of a view seems to behave like 1

Aug 25, 2009 at 1:57 PM
Edited Aug 25, 2009 at 2:16 PM

Hi all,

 

Here is my problem : I have one module which loads viewA and viewB. In both views, i defined a scoped region where i want to load viewC.

So far so good.

Now, when the viewA  model is updated, the viewC gets updated accordingly through a viewCService.Update(data). The problem starts when  i'm calling this viewCService service from both viewA & viewB presenters. ViewC gets updated in both views which of course i don't want.

In both views A & views B presenters, i'm registering the View C  like this

 

            ICPresenter c = Container.Resolve<ICPresenter>();
            scopedRegionManager.Regions[RegionNames.CRegion].Add(c.View);

I was assuming that this will create two instances of my viewC but it seems not..

Am i doing something wrong here ?