AGoyal-esristaff

Exception Using Draw Surface on map with multiple graphics layers

Discussion created by AGoyal-esristaff Employee on Feb 2, 2012
Latest reply on Feb 8, 2012 by AGoyal-esristaff
Is it possible to use Draw object to sketch if there are multiple graphic layers on map?

In my WPF application, I have 3 graphic layers on map-

1) GraphicsLayer3 is a sketch layer (placed on top)
2) GraphicsLayer2 represents stand
3) GraphicLayer1 represents property


If I just add GraphicsLayer1 and GraphicsLayer3 to map, I can use Draw object fine to draw graphics.

However if I add GraphicsLayer2 over GraphicsLayer1 and then try to draw on GraphicsLayer2, the Draw object doesnt start and doesnt fire beginDraw event. As soon as I
start the drawing outside GraphicsLayer2 (even if I am in GraphicsLayer1), I can draw again fine.

Is this a bug or by design? Any clarification would help me design the application appropriately.

Thanks

Apurva

Outcomes