Hi all,GraphicsSource is very good idea for binding using in MVVM. But I found some issues on this property and thought it worth to be improved for GraphicsSource.For instance, I have a GraphicsLayer on Map control which ID="GLayer", and a ObservableCollection<Graphic> which stores my Graphics. Manipulating on ObservableCollection<Graphic> such as remove and add can be reflected to GraphicsLayer and then on Map:
_graphics = new ObservableCollection<Graphic>(some graphics);
(Map1.Layers["GLayer"] as GraphicsLayer).GraphicsSource = _graphics;
...
_graphics.Clear();
foreach (Graphic g in new ObservableCollection<Graphic>(some new graphics)
_graphics.Add(g);
However, directly set the _graphics just not working:
_graphics = new ObservableCollection<Graphic>(some new graphics);//just not working as expected.
When directly setting _graphics as above, nothing happend on Map.I expected below directly set the _graphics just working as previously. Don't know am I right?