答案 0 :(得分:1)
以下代码以编程方式打开位置设置
<TextBlock x:Name="LocationDisabledMessage" FontStyle="Italic"
Visibility="Visible" Margin="0,15,0,0" TextWrapping="Wrap" >
<Run Text="This app is not able to access Location. Go to " />
<Hyperlink NavigateUri="ms-settings:privacy-location">
<Run Text="Settings" />
</Hyperlink>
<Run Text=" to check the location privacy settings."/>
</TextBlock>
有关Get user's location的更多详细信息,请点击此处