2
我有傑夫·威爾考克斯靜態地圖控制:綁定MapCenter座標:中心是空
<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: Center is null
。在這種情況下如何設置默認座標?座標有GeoCoordinate
類型。
當然,它會工作。 :)但我想通過數據綁定。 ViewModel不應該對視圖有任何瞭解。 – Alexandr