David:
Thanks for your quick reply.
I have another question regarding to Overlay.Lock.EnterWriteLock/ExitWriteLock.
Again I am working on a PostgreFeatureLayer, when the user select an option to create a thematic map for the PostgreFeatureLayer, I put the code regarding to the style changes to the PostgreFeatureLayer in the Overlay.Lock.EnterWriteLock/ExitWriteLock, this works fine. But I also created a Lengend layer by extending the AdornmentLayer, and added it to AdornmentOverlay, if the user changes the thematic map option, I removed the legend layer from AdornmentOverlay and add a new one but with the same name, the problem is this legend layer is not refreshed, it worked in previous beta version.
The funny thing is if I put code which add the Legend layer to the AdornmentOverlay inside the PostgreFeatureLayer's Overlay.Lock.EnterWriteLock/ExitWriteLock block, this legend layer won't show up,.
Hope you can help on this.
Thanks
Rose