Windows phone 8.1 如何在Windows Phone 8.1中从其他应用启动应用程序
我想从Windows Phone 8.1环境中的其他应用程序启动我的应用程序。我按照MSDN中的说明操作,但我不知道如何从第二个应用程序调用第一个应用程序。这是我在第一个应用程序的清单文件中添加的协议:Windows phone 8.1 如何在Windows Phone 8.1中从其他应用启动应用程序,windows-phone-8.1,uri,windows-8.1,windows-10,launch,Windows Phone 8.1,Uri,Windows 8.1,Windows 10,Launch,我想从Windows Phone 8.1环境中的其他应用程序启动我的应用程序。我按照MSDN中的说明操作,但我不知道如何从第二个应用程序调用第一个应用程序。这是我在第一个应用程序的清单文件中添加的协议: <Extensions> <Extension Category="windows.protocol"> <Protocol Name="myapp"> <Logo>Assets\SmallLogo.scale-
<Extensions>
<Extension Category="windows.protocol">
<Protocol Name="myapp">
<Logo>Assets\SmallLogo.scale-240.png</Logo>
<DisplayName>my App 1</DisplayName>
</Protocol>
</Extension>
</Extensions>
按照中的步骤进行操作
您必须使用从UriMapperBase
派生的类来处理导航,并且必须在App.xaml.cs中将其设置为RootFrame.UriMapper
private void InitializePhoneApplication()
{
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Assign the URI-mapper class to the application frame.
RootFrame.UriMapper = new AssociationUriMapper();
******
}
按照中的步骤进行操作
您必须使用从UriMapperBase
派生的类来处理导航,并且必须在App.xaml.cs中将其设置为RootFrame.UriMapper
private void InitializePhoneApplication()
{
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Assign the URI-mapper class to the application frame.
RootFrame.UriMapper = new AssociationUriMapper();
******
}
无法重现您的问题,我可以启动目标应用程序。您是否已部署目标应用程序myapp?无法重现您的问题,我可以启动目标应用程序。您是否已部署目标应用程序myapp?