MEFedMVVM NavigationExtension, the sample TestNavigation

Feb 26, 2012 at 1:08 PM

Hi

I am studying MEFedMVVM, the chapter "NavigationExtension" and try to understand the sample under under Samples\TestNavigation  and found that the original XAML code:

<Button Grid.Column="1"
        HorizontalAlignment="Center"
        Content="Step 2: Render user details"
        mefed:NavigationExtensions.NavigateTo="http://myApp/RenderUser"
        mefed:NavigationExtensions.NavigationHost="{Binding ElementName=NavigationContainer}"
        mefed:NavigationExtensions.NavigationHandler="{Binding ElementName=enterProfile,
                                                               Path=(mefed:NavigationExtensions.NavigationHandler)}"                                                                          
/>

If we change the order of
NavigationHost with NavigationHandler i.e.

<Button Grid.Column="1"
        HorizontalAlignment="Center"
        Content="Step 2: Render user details"
        mefed:NavigationExtensions.NavigateTo="http://myApp/RenderUser"
        mefed:NavigationExtensions.NavigationHandler="{Binding ElementName=enterProfile,
                                                               Path=(mefed:NavigationExtensions.NavigationHandler)}" 
       mefed:NavigationExtensions.NavigationHost="{Binding ElementName=NavigationContainer}"                                                                         
/>
So it does not run anymore.
Is this a bug of the NavigationExtension DependencyProperties or a rule to be kept while using it ?