Hi,
I just started to update my applications from version 2.2 to 2.3 this morning, I feel a little bit strange about cluster, symbol, renderer. I am not for sure it is a bug or ESRI redesigned the API in this new way.
#1. I have graphics layers using cluster, I didn't use renderer, just in the code, set graphic.Symbol = Mymbol ( something like this).
If I only have a few graphics, no cluster, I could not see anything about my graphicsLayer, if I have more graphics, I could see clusters, I zoomined and expanded the cluster, then the graphicslayer not show, no symbol displayed. Just like this ESRI sample (Graphics-> Simple Cluster http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SimpleClusterer ). When you expand the clusters, no individual Symbol displayed.
#2. I made a little change, the graphics layers are still using cluster, still the same symbols, just put the simple in a renderer, set the graphic layers Renderer = MyRenderer, then it worked as before. Like the ESRI sample (graphics->Custom Clusterer: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomClusterer ).
After I figured out this, it is not difficult for me to update my applications, just a little bit curious at this change.
Seems to be a bug.
As you found out, the workaround is to set a renderer.
Thanks for reporting that.
It seems like in the OnCreateGraphic override method, cluster count will never be less than 2, so in cluster mode, you will never see single graphic shown. Even FlareClusterer seems to have this issue.
Please open up DGraphic for use in the next patch. PLEASE!
Duncan, are you using reflection to get the DGraphic collection? If so, how are you doing it? I am not that familiar with reflection.