主要内容:通过指定的URI来启动默认的应用(设置,应用商店,地图,人脉)
方法一:直接在XAML中添加如下代码
<TextBlock x:Name="LocationDisabledMessage" FontStyle="Italic"
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