locked
Metro can Navigate to a Page in a ClassLibrary without reference the library? RRS feed

  • Question

  • i know that we can navigate to page in the metro class library directly by reference the library, but can we navigate to it without reference,

    due to development reason, we need to navigate to the page in class library in Main APP without reference the lib, we tried the reflection, but the page is partial class, so it will throw the exception when create the XAML page.

    any walkaround?  

    Regards,


    • Edited by modern210 Tuesday, October 16, 2012 7:14 AM
    Tuesday, October 16, 2012 1:28 AM

All replies

  • Have you thought to create your own navigation service? Because you can use Ioc and inject the dependence in the project and maybe you solve the problem.

    See this:

    NavigationService for WinRT

    Note: don´t copy and paste code, only... because this is only a navigation service sample...



    Sara Silva


    • Edited by saramgsilva Tuesday, October 16, 2012 7:33 PM
    Tuesday, October 16, 2012 7:33 PM
  • this may be a little complex.

    for the reference class library, the app can navigate to the page in class library easily, but if not reference it how to navigate to the page in library?

    Thursday, October 18, 2012 2:24 AM