【发布时间】:2016-11-25 17:38:48
【问题描述】:
Windows Phone 8.1 中的内容对话框不允许在 XAML 中添加地图控件,当您添加它并运行项目时,应用程序因 灾难性故障而崩溃 例外。
<ContentDialog
xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps"
x:Class="example.ContentDialogexample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="">
<StackPanel>
<Maps:MapControl MapServiceToken="MapKey" />
</StackPanel>
</ContentDialog>
【问题讨论】:
-
那么你的问题是什么?如何让
MapControl在WP8.1应用中的ContentDialog中显示? -
@GraceFeng-MSFT 是的,没错
标签: c# xaml windows-phone-8.1 windows-phone bing-maps