Select to view content in your preferred language

How could I get a mouseevent of a editgraphic?

1124
4
10-27-2011 09:19 AM
SkyYu
by
Emerging Contributor
I use the EditGraphic in Arcgis but when the graphic is in editting status,looks like it could not support mouse button event,which means i could not get the current editting graphic by mouse.Is there any idea to solve this problem? Thanks!
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
This is by design, the temporary graphic used in editing is only accessible at the API level. What you have access over is the original graphic. If the reason you want access to the edit graphic is to customize the symbols used in editing, you can use EditGeometry instead as shown in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsGeometry. You can download WPF SDK to see the WPF version.
0 Kudos
SkyYu
by
Emerging Contributor
This is by design, the temporary graphic used in editing is only accessible at the API level. What you have access over is the original graphic. If the reason you want access to the edit graphic is to customize the symbols used in editing, you can use EditGeometry instead as shown in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsGeometry. You can download WPF SDK to see the WPF version.


Hi,
Thank you for reply.But,what I want is The Graphic Click or MouseDown,touch event,not to edit it.
0 Kudos
JenniferNery
Esri Regular Contributor
GraphicsLayer has a MouseLeftButtonDown event. When you mouse down on a graphic, this event will fire and you can access it using e.Graphic.
0 Kudos
arnoudde_jong
Emerging Contributor
Mouse event is working, but the touch is not available? Any suggestions how we could listen to wpf Touch events on a graphic/polygon?
0 Kudos