Hi,
I am encountering an exception while panning XamMap control. I worked with 2010.2 build earlier it was working fine. But in the latest release 2010.3 I am getting an exception, details are as follows.
Message: Element is already the child of another element.
Stack Trace: at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh) at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj) at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet) at System.Windows.Controls.ToolTipService.ConvertToToolTip(Object o) at System.Windows.Controls.ToolTipService.RegisterToolTip(UIElement owner, Object toolTip) at System.Windows.Controls.ToolTipService.OnToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
also attaching the screen shot of the incident.
Thanks,
Sudheer CV
Actually we are using an User Control as tool tip of the map elements, We figured it out that the tool tip is the one causing this issue. I tried without tooltip, it is working good. My question is why in 2010.3 version of XamMap, it is causing problem?
Hi Sudheer,
Would you please provide some sample code where you get the exception on (XAML and\or Code Behind)? This will make it easier to investigate the issue.
Milana Zhileva