Windows phone 7 绑定地图中心坐标:中心为空

Windows phone 7 绑定地图中心坐标:中心为空,windows-phone-7,data-binding,map,windows-phone-8,Windows Phone 7,Data Binding,Map,Windows Phone 8,我有Jeff Wilcox静态地图控件: <jwMaps:StaticMap VerticalAlignment="Top" Margin="-12,0,-12,0" Provider="Bing" Foreground="{StaticResource

我有Jeff Wilcox静态地图控件:

<jwMaps:StaticMap
            VerticalAlignment="Top"                                   
            Margin="-12,0,-12,0"
            Provider="Bing"                                    
            Foreground="{StaticResource PhoneAccentBrush}"
            Height="200"
            ZoomLevel="1"
            Visibility="Visible"
            MapCenter="{Binding Coordinates}" />

但是我有错误
System.ArgumentException:中心为null
。在这种情况下,如何设置默认坐标?坐标有
地理坐标
类型。

按代码放置 将name属性添加到StaticMap示例name=“StaticMap” 然后staticMap.MapCenter=坐标

它当然会起作用。:)但是我想通过数据绑定。ViewModel不应该知道有关视图的任何信息。