你的位置:首页 > 软件开发 > 操作系统 > Windows 10开发基础——启动默认应用的URI

Windows 10开发基础——启动默认应用的URI

发布时间:2015-09-23 01:00:11
主要内容:通过指定的URI来启动默认的应用(设置,应用商店,地图,人脉)方法一:直接在XAML中添加如下代码 <TextBlock x:Name="LocationDisabledMessage" Font ...

主要内容:通过指定的URI来启动默认的应用(设置,应用商店,地图,人脉)

方法一:直接在XAML中添加如下代码 

<TextBlock x:Name="LocationDisabledMessage" Font

                 Visibility="Visible" Margin="0,150,0,0" TextWrapping="Wrap" >

          <Run Text="This app is not able to access the microphone. Go to " />

              <Hyperlink NavigateUri="ms-settings:privacy-microphone">

                  <Run Text="Settings" />

              </Hyperlink>

          <Run Text=" to check the microphone privacy settings."/>

        </TextBlock>

 

方法二:

 bool result = await Launcher.LaunchUriAsync(new Uri("ms-windows-store://downloadsandupdates"));

 

 

启动 Windows 设置应用

https://msdn.microsoft.com/zh-cn/library/windows/apps/mt228342.aspx

 

启动 Windows 应用商店应用

https://msdn.microsoft.com/zh-cn/library/windows/apps/mt228343.aspx

 

启动 Windows 地图应用

https://msdn.microsoft.com/zh-cn/library/windows/apps/mt228341.aspx

 

启动“人脉”应用

https://msdn.microsoft.com/zh-cn/library/windows/apps/mt187315.aspx


原标题:Windows 10开发基础——启动默认应用的URI

关键词:Windows

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录