C# 从我的UWP应用程序启动默认的microsoft windows气象应用程序
我目前正在开发UWP应用程序,我想从我的UWP应用程序中打开默认的microsoft weather应用程序,实际上我尝试了以下代码来打开weather应用程序C# 从我的UWP应用程序启动默认的microsoft windows气象应用程序,c#,xaml,uwp,C#,Xaml,Uwp,我目前正在开发UWP应用程序,我想从我的UWP应用程序中打开默认的microsoft weather应用程序,实际上我尝试了以下代码来打开weather应用程序 <HyperlinkButton Grid.Row="7" Margin="0,10,0,0" NavigateUri="ms-windows-store://pdp/?PFN=Microsoft.BingWeather_8wekyb3d8bbwe"
<HyperlinkButton Grid.Row="7"
Margin="0,10,0,0" NavigateUri="ms-windows-store://pdp/?PFN=Microsoft.BingWeather_8wekyb3d8bbwe"
FontSize="14"
HorizontalAlignment="Center" />
但它首先打开商店,然后在商店中打开天气应用程序,因为我使用的是ms windows商店:但我想直接从我的应用程序打开天气应用程序。有没有可能
谢谢和问候,
Cristina。您可以使用以下深度链接直接打开天气应用程序:
msnweather:
您必须将代码更改为:
<HyperlinkButton Grid.Row="7"
Margin="0,10,0,0" NavigateUri="msnweather:"
FontSize="14"
HorizontalAlignment="Center" />
您可以使用以下deeplink直接打开天气应用程序:
msnweather:
您必须将代码更改为:
<HyperlinkButton Grid.Row="7"
Margin="0,10,0,0" NavigateUri="msnweather:"
FontSize="14"
HorizontalAlignment="Center" />
只需添加。。。你也可以使用bingweather:只是为了添加。。。您还可以使用bingweather: