DataBinding a GraphicsLayer's Graphics property

432
1
09-03-2010 03:25 AM
DarylParker
New Contributor
I've been trying to Data Bind the Graphics dependency property of a GraphicsLayer in Xaml to an instance in my ViewModel, as in the MVVM pattern. For some reason I get a null pointer exception coming from the GraphicsLayer when the binding is attempted. In the debugger I can see that my graphics collection is created and is simply empty.

I'm pretty sure this is a bug, but thought i'd ask if anyone else had managed to do this. I'm using the v2.0 api within a WPF app.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
0 Kudos