<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mouse event on CIMgraphic in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217067#M8800</link>
    <description>&lt;P&gt;Hello, a while back I asked a dumb question about moving a graphic, once created programmatically.&amp;nbsp; I'm very new to ArcGIS.&lt;/P&gt;&lt;P&gt;So now that I know how to move it, I'd like to know how to get the event when the mouse stops moving the graphic, so that I can get the new location of the graphic.&lt;/P&gt;&lt;P&gt;I see in the properties for the graphic, it shows the new location, but I need to get that programmatically after they move it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 18:36:51 GMT</pubDate>
    <dc:creator>AndrewAlexander1</dc:creator>
    <dc:date>2022-09-28T18:36:51Z</dc:date>
    <item>
      <title>Mouse event on CIMgraphic</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217067#M8800</link>
      <description>&lt;P&gt;Hello, a while back I asked a dumb question about moving a graphic, once created programmatically.&amp;nbsp; I'm very new to ArcGIS.&lt;/P&gt;&lt;P&gt;So now that I know how to move it, I'd like to know how to get the event when the mouse stops moving the graphic, so that I can get the new location of the graphic.&lt;/P&gt;&lt;P&gt;I see in the properties for the graphic, it shows the new location, but I need to get that programmatically after they move it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 18:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217067#M8800</guid>
      <dc:creator>AndrewAlexander1</dc:creator>
      <dc:date>2022-09-28T18:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse event on CIMgraphic</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217168#M8801</link>
      <description>&lt;P&gt;I assume u mean the graphics added to a layout or graphics layer?&lt;/P&gt;&lt;P&gt;At Pro 3.0+ use:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76572.html" target="_self"&gt;ArcGIS.Desktop.Layouts.Events.ElementEvent&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76582.html" target="_self"&gt;ArcGIS.Desktop.Layouts.Events.ElementEventArgs.Hint&lt;/A&gt; of&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76600.html" target="_self"&gt;ElementEventHint.PlacementChanged&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so, something like:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGIS.Desktop.Layouts.Events.ElementEvent.Subscribe((args) =&amp;gt; {
 var elems = args.Container.GetSelectedElements();
 switch (args.Hint){
    ...
    case ElementEventHint.PlacementChanged:
      //TODO - handle element move if the elements are 
      //graphic elements&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 22:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217168#M8801</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-09-28T22:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse event on CIMgraphic</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217186#M8802</link>
      <description>&lt;P&gt;Yes, thank you very much.&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 22:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mouse-event-on-cimgraphic/m-p/1217186#M8802</guid>
      <dc:creator>AndrewAlexander1</dc:creator>
      <dc:date>2022-09-28T22:50:23Z</dc:date>
    </item>
  </channel>
</rss>

