Isn't the System.Action Anonymous and takes 0 args?would we have to create a new delegate with a Graphic set as one of the args....??? I have been trying to get this to work for days now and still can't seem to get this thing going 😞
if (graphics.Count() > 0) foreach (Graphic g in graphics) GraphicLayer.GraphicsSource = graphics;
if (graphics.Count() > 0) GraphicLayer.GraphicsSource = graphics;
Dispatcher.CurrentDispatcher.Invoke((System.Action)(() =>
Dispatcher.CurrentDispatcher.Invoke((System.Action)((graphics) =>
Can you post the code that you are using to accomplish this? What error do you get when you attempt to use the Dispatcher?
I have tried to use Dispatcher object for the screen, the map object, the graphics layer but none seems to work for me.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.