<?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 Can I select a graphic in ArcGIS runtime 100.2 (WPF) by clicking on its label? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/can-i-select-a-graphic-in-arcgis-runtime-100-2-wpf/m-p/304978#M3559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can select graphics (points) on my map with&amp;nbsp;the MapV&lt;SPAN&gt;iew.IdentifyGraphicsOverlayAsync()&lt;/SPAN&gt; method (see parameters below). Our customers asks if they will be able to select the graphics by clicking on the labels. In my understanding we can't really get the extents of the labels or their boxes, so we need to rely on the MapView component to expose a method that can do it for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly,&lt;/P&gt;&lt;P&gt;Thomas Lindegaard&lt;/P&gt;&lt;P&gt;cVation.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var identifyResults = await view.IdentifyGraphicsOverlayAsync(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;overlay,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;screenPoint,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;TOLERENCE,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;false,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;MAX_RESULTS);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TOLERENCE = 2,&amp;nbsp;MAX_RESULTS = 2&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 14:00:42 GMT</pubDate>
    <dc:creator>ThomasLindegaard</dc:creator>
    <dc:date>2018-10-31T14:00:42Z</dc:date>
    <item>
      <title>Can I select a graphic in ArcGIS runtime 100.2 (WPF) by clicking on its label?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-i-select-a-graphic-in-arcgis-runtime-100-2-wpf/m-p/304978#M3559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can select graphics (points) on my map with&amp;nbsp;the MapV&lt;SPAN&gt;iew.IdentifyGraphicsOverlayAsync()&lt;/SPAN&gt; method (see parameters below). Our customers asks if they will be able to select the graphics by clicking on the labels. In my understanding we can't really get the extents of the labels or their boxes, so we need to rely on the MapView component to expose a method that can do it for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly,&lt;/P&gt;&lt;P&gt;Thomas Lindegaard&lt;/P&gt;&lt;P&gt;cVation.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;try&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var identifyResults = await view.IdentifyGraphicsOverlayAsync(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;overlay,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;screenPoint,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;TOLERENCE,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;false,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;MAX_RESULTS);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TOLERENCE = 2,&amp;nbsp;MAX_RESULTS = 2&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-i-select-a-graphic-in-arcgis-runtime-100-2-wpf/m-p/304978#M3559</guid>
      <dc:creator>ThomasLindegaard</dc:creator>
      <dc:date>2018-10-31T14:00:42Z</dc:date>
    </item>
  </channel>
</rss>

