locked
[WP 8.1] usage of UriMapper in Windows Phone 8.1 RRS feed

  • Question

  • Hi,

    I have a code sample in Windows Phone 8.0 in my App.xaml page as below.

    xmlns:Nav="clr-namespace:System.Windows.Navigation;assembly=Microsoft.Phone"
    
    <Nav:UriMapper x:Key="UriMapper">
                    <Nav:UriMapper.UriMappings>
                        <Nav:UriMapping Uri="/SearchExtras" MappedUri="/MainPage.xaml"/>
                    </Nav:UriMapper.UriMappings>
                </Nav:UriMapper>

    How can i achieve this functionality in Windows Phone 8.1, i tried using Windows.UI.Xaml.Navigation namespace instead of System.windows.navigation namespace but it didn't work out.


    Mohan Rajesh Komatlapalli

    Wednesday, September 16, 2015 4:32 AM

Answers

  • Hello Mohan Rajesh Komatlapalli,

    The Windows.UI.Xaml.Navigation namespace in Windows Phone 8.1 is Windows Runtime apps only, so I suppose you are using the Windows Runtime project.(Your title also said this).

    And it seems we don't have such an API for you to do this. You may need to use absolute URI when running a Windows Runtime App.

    According to the URI schemes when we launch the URI in Windows Runtime we need to follow the URI naming policy.

    Best regards,

    Barry


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Barry Wang Wednesday, October 7, 2015 10:28 AM
    • Marked as answer by Barry Wang Thursday, October 8, 2015 2:33 AM
    Thursday, September 17, 2015 9:59 AM