Bing Maps Silverlight Control 사용자 정의 푸시 핀
-
19-09-2019 - |
문제
Bing Maps Silverlight 컨트롤을위한 맞춤형 푸시 핀을 만들려고했지만 1 개의 푸시 핀 만 추가 할 수 있습니다. 두 번째 푸시 핀에서 다음 오류가 발생합니다.
System.ArgumentException: Value does not fall within the expected range.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
at System.Windows.PresentationFrameworkCollection`1.Add(T value)
at MapInfo.Silverlight.CitiesControl.MainPage.c_GetCitiesCompleted(Object sender, GetCitiesCompletedEventArgs e)
내가 뭘 잘못하고 있는지 아는 사람이 있습니까? 지도에 추가하기 전에 다음 속성을 설정하고 있습니다.
public Location Location
{
get
{
return this.GetValue(MapLayer.PositionProperty) as Location;
}
set
{
this.SetValue(MapLayer.PositionProperty, value);
}
}
this.SetValue(MapLayer.PositionOriginProperty, PositionOrigin.BottomLeft);
해결책
2 푸시 핀은 동일 할 수 없습니다 Name
재산 가치.
제휴하지 않습니다 StackOverflow