Navigate View

Topics: Prism v4 - WPF 4
Mar 21, 2011 at 7:31 PM
Edited Mar 21, 2011 at 8:54 PM

Hi,

    I have two regions: NavigateRegion ( using a menu to switch between the views ) and another region called MainRegion.

    When I click on Menu, I call regionManager.RequestNavigate( "MainRegion", "ViewInsertProduct" );

 

    The view "InsertProduct" implemets INavigationAware. The methods from INavigationAware are called, but the view ( screen ) does not show.

    What do I need to do ?

 

* I am using Unity container.

* These views are in diferent modules.

* I have already done it, but it did not work.

        protected override void ConfigureContainer()
        {
            base.ConfigureContainer();

            Container.RegisterType(typeof(object), typeof(ViewInsertProduct), "ViewInsertProduct");
            Container.RegisterType(typeof(object), typeof(ViewInsertClient), "ViewInsertClient");
        }

 

Anybody can help me ?

 

Thanks

Mar 22, 2011 at 1:18 PM

I have finally done.

I have removed the navigation region and used a menu in the main window. This menu does navigation over the MainRegion.

It has worked !

 

I did not understand why i could not navigate from navigate region ....

Developer
Mar 22, 2011 at 3:53 PM

Hi Bruno,

If the methods from INavigationAware are called it means that the navigation has been performed. The issue you were experiencing could have something to do with the layout of your application.

I'm glad that you've solved your issue.

Guido Leandro Maliandi 
http://blogs.southworks.net/gmaliandi