Hi,
I have a problem when I put tooltips on my SymbolLayer.
I've seen this thread with similar issues:
http://community.infragistics.com/forums/p/48443/257341.aspx
I've tried putting ToolTip on the SymbolElement in different ways:
element.ToolTip = string.Format("Value: {0} ", value);
also with the suggested approach in the other thread
UCToolTip toolTip = new UCToolTip(name); //, bank, metricName, metricValue);
System.Windows.Controls.ToolTip myMapTip = new System.Windows.Controls.ToolTip();
element.ToolTip = myMapTip;
and also with my Own control MapTooltip.
When I zoom in and out on the map, using the mouse scroller, I get regulary a popup stating 'Object reference not set to instance of an object'.
If I comment out the assignment of the ToolTip on the element. I no longer get the popup stating this problem.
Any ideas how to fix these?
Hi Roel,
Sorry for the late reply.
In order to provide you with the latest service release when using the trial version of the product, a support ticket should be created by our Developers Support team. I will contact them and ask them to create such a ticket for you. You can check the progress on My Support Activity tag on our website.
Best regards,Milana Zhileva
Any news on this?
Hi Milana,
The version I'm currently trying out is a trial version.
10.3.20103.1006
Since we are still evaluating: is it possible to download a service release this way?
I don't find anything to download under "service releases"
Are you using the latest service release? The issue you are experiencing resembles one that has already been fixed in one of our previous SRs.
I was using another approach
I have two layers, a shp file layer and a symbolLayer
The mapLayer itself is a symbolLayer, so I was not using MapLayerImported event.
I just add elements to the ElementCollection
like this:
control.xamMap.Layers["symbolLayer"].Elements = elementCollection;
Here the elements already have the tooltips set.
I've tried to have it working with the MapLayerImported event (attached to the shp file layer) and then adding the elements (which have tooltips assigned), but I had the same error.
I noticed another thing:
You only get the exception when you zoom in on a symbolelement which has a tooltip associated on it. (so put your cursor on the point, and zoom in or out before the tooltip appears). The SymbolElement I am using is a custom png file.
You do not get the exception when you zoom in on the shape file or on the basemap.
Let me know if this is enough information.