Navigation

Feb 27, 2012 at 2:28 PM

Hi,

is there any advice how to mix Navigation and ViewInjection?

What i would like to do:

On entering (starting) a Module get my first view with ViewInjection and the go further on with Navigation.

Any pro's or con's

Or is it the better way to stay with one Method (ViewInjection or Navigation)

Thanks

Peter

 

Developer
Feb 29, 2012 at 4:02 PM

Hi,

As far as I know, it is usual to use only one of the two approaches when changing views within a region. Using two different approaches within the same region can cause some unexpected behaviors. For example, if you have a view which implements a OnNavigatedFrom method and you inject a view in the same region, the aforementioned method might not be invoked.

However, based on my understanding, if you use view injection (or view discovery) only at start-up and then go further on with navigation, you should not find any serious problems.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Mar 2, 2012 at 5:53 AM

Hi,

this is exactly what i'm looking for

Thanks

Peter