RequestNavigate can't find the view

Topics: Prism v4 - Silverlight 4
Jan 28, 2011 at 8:32 PM

Hi,

I have two modules, module A has a radio button, which will request a view in module B.

In the module B Initialize method, I have

 

Container.RegisterType<ICustomerSearchView, CustomerSearchView>("CustomerSearchView");

 

In the module A command handler, I have

RegionManager.RequestNavigate(RegionNames.ContentRegion, "CustomerSearchView") 

It keeps giving me System.Object

 

But I set a break point in the Module A, and check this.Container.Registrations

My view is registered as "CustomerSearchView"

but why Prism can't find it?

 

thanks a lot

Jan 28, 2011 at 8:58 PM

ok, this is interesting,

if I changed the code to

Container.RegisterType<object, CustomerSearchView>("CustomerSearchView");

it works.

but why I can't use my own Interface to represent my view