<?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 Re: MapTool.OnSelectionChangedAsync not triggered in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-onselectionchangedasync-not-triggered/m-p/1200480#M8566</link>
    <description>&lt;P&gt;When &lt;SPAN&gt;MapTool.UseSelection is true and your MapTool does sketching (i.e. i used SketchType = SketchGeometryType.Line in my sample), you can start sketching and the sketch (in progress) is saved as soon as you hold down the SHIFT key.&amp;nbsp; Here i am digitizing my line sketch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1659977642613.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48050i75FD6A9B3591FB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1659977642613.png" alt="Wolf_0-1659977642613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then i hold down my Shift Key and the Sketch state is preserved.&amp;nbsp; Note that the sketching toolbar disappears as soon as you hold down the Shift key.&amp;nbsp; Now with the Shift Key down i am in selection mode and i can now select different features (selection by Rectangle):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1659977715194.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48052i2D6AB524F6FA5F73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1659977715194.png" alt="Wolf_1-1659977715194.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When i finish any selection (by finishing the rubberband selection with the shift key still down) the&amp;nbsp;OnSelectionChangedAsync method is called with the MapSelectionChangedEventArgs parameter showing the change in selection.&lt;/P&gt;&lt;P&gt;Once i let the Shift key go, the Sketch state is restored and i can resume sketching where i left off before i held down the Shift key.&amp;nbsp; The sketch tool bar also reappears.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_2-1659977921998.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48055iE0686909D4486670/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_2-1659977921998.png" alt="Wolf_2-1659977921998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 17:06:53 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2022-08-08T17:06:53Z</dc:date>
    <item>
      <title>MapTool.OnSelectionChangedAsync not triggered</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-onselectionchangedasync-not-triggered/m-p/1199664#M8562</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;on a custom Tool that extend the MapTool class.&lt;/P&gt;&lt;P&gt;When MapTool.UseSelection is true&lt;/P&gt;&lt;P&gt;If the selection is done while the sketch tool is active, so you are drawing lines, the&amp;nbsp;MapTool.OnSelectionChangedAsync isn't triggered.&lt;/P&gt;&lt;P&gt;Is it possibile, is it correct?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 22:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-onselectionchangedasync-not-triggered/m-p/1199664#M8562</guid>
      <dc:creator>GiacomoGasco</dc:creator>
      <dc:date>2022-08-04T22:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.OnSelectionChangedAsync not triggered</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-onselectionchangedasync-not-triggered/m-p/1200480#M8566</link>
      <description>&lt;P&gt;When &lt;SPAN&gt;MapTool.UseSelection is true and your MapTool does sketching (i.e. i used SketchType = SketchGeometryType.Line in my sample), you can start sketching and the sketch (in progress) is saved as soon as you hold down the SHIFT key.&amp;nbsp; Here i am digitizing my line sketch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1659977642613.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48050i75FD6A9B3591FB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1659977642613.png" alt="Wolf_0-1659977642613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then i hold down my Shift Key and the Sketch state is preserved.&amp;nbsp; Note that the sketching toolbar disappears as soon as you hold down the Shift key.&amp;nbsp; Now with the Shift Key down i am in selection mode and i can now select different features (selection by Rectangle):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1659977715194.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48052i2D6AB524F6FA5F73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1659977715194.png" alt="Wolf_1-1659977715194.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When i finish any selection (by finishing the rubberband selection with the shift key still down) the&amp;nbsp;OnSelectionChangedAsync method is called with the MapSelectionChangedEventArgs parameter showing the change in selection.&lt;/P&gt;&lt;P&gt;Once i let the Shift key go, the Sketch state is restored and i can resume sketching where i left off before i held down the Shift key.&amp;nbsp; The sketch tool bar also reappears.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_2-1659977921998.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48055iE0686909D4486670/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_2-1659977921998.png" alt="Wolf_2-1659977921998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 17:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-onselectionchangedasync-not-triggered/m-p/1200480#M8566</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-08-08T17:06:53Z</dc:date>
    </item>
  </channel>
</rss>

