This question is locked. New answers and comments are not allowed.
Hi,
I'm using TileView / RadFluidContentControl to display different items.
Each Item has a RadMap inside RadFluidContentControl.LargeContent with Provider property bind it to a viewmodel property.
XAML code looks like this:
Everything works fine , but time to time(not always) when I'm inflating the item to LargeContent I'm getting this error :
I'm using TileView / RadFluidContentControl to display different items.
Each Item has a RadMap inside RadFluidContentControl.LargeContent with Provider property bind it to a viewmodel property.
XAML code looks like this:
<telerik:RadMap Grid.Row="0" Grid.Column="1" x:Name="LoopMap" ZoomLevel="12" MinZoomLevel="11" MaxZoomLevel="15" Center="42.72481708629, 23.3176519378416" ZoomBarVisibility="Collapsed" CommandBarVisibility="Collapsed" Provider="{Binding MapProvider}" MouseClickMode="None" UseSpringAnimations="True" MouseDragMode="None" MouseDoubleClickMode="None" Background="{x:Null}" IsKeyboardNavigationEnabled="False" />Everything works fine , but time to time(not always) when I'm inflating the item to LargeContent I'm getting this error :
{System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.Collection_Insert[T](PresentationFrameworkCollection`1 collection, Int32 index, Object value) at System.Windows.PresentationFrameworkCollection`1.InsertImpl(Int32 index, Object value) at System.Windows.Controls.ItemCollection.InsertImpl(Int32 index, Object value) at System.Windows.Controls.ItemCollection.InsertInternal(Int32 index, Object value) at System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value) at Telerik.Windows.Controls.Map.TilesVisualizationLayer.PresenterMapSourceChanged(Object sender, SourceChangedEventArgs e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Telerik.Windows.Controls.Map.TilePresenter.RaiseMapSourceChanged(IMapSource oldSource, IMapSource newSource) at Telerik.Windows.Controls.Map.TilePresenter.set_CurrentSource(IMapSource value) at Telerik.Windows.Controls.Map.TilePresenter.MapSourceInitializeCompleted(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at Telerik.Windows.Controls.Map.ImageMapSource.RaiseInitializeCompleted() at Telerik.Windows.Controls.Map.ImageMapSource.Initialize() at Telerik.Windows.Controls.Map.TilePresenter.SetImageMapSource(ImageMapSource source) at Telerik.Windows.Controls.Map.TilePresenter.SetMapSource(IMapSource mapSource) at Telerik.Windows.Controls.Map.MapProviderBase.SetMapSource(String uniqueId) at Telerik.Windows.Controls.Map.TilesVisualizationLayer.AddPresenter(MapProviderBase provider, Int32 order) at Telerik.Windows.Controls.RadMap.ProvidersCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Windows.DependencyObjectCollection`1.TryCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Windows.DependencyObjectCollection`1.Insert(Int32 index, T item) at Telerik.Windows.Controls.RadMap.ProviderChanged(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs) at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp) at System.Windows.Data.BindingExpression.SendDataToTarget() at System.Windows.Data.BindingExpression.SourceAcquired() at System.Windows.Data.Debugging.BindingBreakPoint.<>c__DisplayClass4.<BreakOnSharedType>b__3() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Delegate.DynamicInvoke(Object[] args) at LoopTitlexaml_5.BindingOperation(Object BindingState, Int32 , Action )}Looks to me it's something related to property binding. Any ideas ? Thank you, Alex