Hello,
We have an issue with the marker templates for XamDataChart ScatterSeries. Possible steps to reproduce the problem is:
1. Create some specific data template.2. Create chart and at run-time assign template for the series.3. So now on the screen we can see series with our template.
And a question is how to drop this template to null? If we set it null then nothing happens and series is still shown with data template. To hide series is possible to set just empty DataTemplate, but it give us another posibble problem. We have a high populated data so for all points which was existed before assigning still will be exist elements in visual tree.
Have you any suggest how we can proper achieve clearing of the MarkerTemplate property. Or maybe in latest release it works in some different manner (we use 11.1)
Thanks for attention
Hello Andrey,
Thank you for your post. I have been looking into and I tested your scenario with both the RTM and latest service release of 11.1 and the result was as you describe it. I also tested this with the latest service release of our 12.2 version and there when you set the MarkerTemplate to null it reverts back as you want. Since version 11.1 is retired we no longer provide fixes or implement features for it, so my suggestion is either use the workaround you have mentioned or download our latest version (12.2).
Please let me know if you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
Thanks for your quick reply. At this moment we haven't possibility to use the newest version of components. We'll write about the results as soon as we replace old components with new ones.
As you suggested, we tried the latest version. Everything is just as we wanted and you described: when we set MarkerTemplate to null, markers disappears. It's good.
I looked at visual tree and saw that Markers gets empty template when MarkerTemplate sets to null. We did the same for the early version of components, where we had the problem with resetting TemplateMarker. So I have a question: is it possible (in your plans) completely remove markers from visual tree when we set MarkerTemplate to null (as we have at the beginning when MarkerTemplate set to null by default)? Will it affect the performance?