<?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 Custom cluster graphic does not fire mouse handler in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/custom-cluster-graphic-does-not-fire-mouse-handler/m-p/43521#M198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a custom graphics cluster in code-behind with the following XAML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;esri:GraphicsLayer ID="WorkOrders" MouseLeftButtonUp="GraphicsLayer_MouseLeftButtonUp"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.Clusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:OrderClusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:OrderClusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.Clusterer&amp;gt;
&amp;lt;/esri:GraphicsLayer&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mouse up handler normally fires when I click on an unclustered graphic; I am wondering why the cluster graphic (if it belongs to the same graphics layer) does not fire the handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to work around this with a generic map mouseclick handler [as I am currently doing in my generic map touch handler] via FindGraphicsInHostCoordinates() ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vernon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 21:10:11 GMT</pubDate>
    <dc:creator>VernonChin</dc:creator>
    <dc:date>2014-01-29T21:10:11Z</dc:date>
    <item>
      <title>Custom cluster graphic does not fire mouse handler</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/custom-cluster-graphic-does-not-fire-mouse-handler/m-p/43521#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a custom graphics cluster in code-behind with the following XAML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;esri:GraphicsLayer ID="WorkOrders" MouseLeftButtonUp="GraphicsLayer_MouseLeftButtonUp"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.Clusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:OrderClusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:OrderClusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.Clusterer&amp;gt;
&amp;lt;/esri:GraphicsLayer&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mouse up handler normally fires when I click on an unclustered graphic; I am wondering why the cluster graphic (if it belongs to the same graphics layer) does not fire the handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to work around this with a generic map mouseclick handler [as I am currently doing in my generic map touch handler] via FindGraphicsInHostCoordinates() ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vernon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/custom-cluster-graphic-does-not-fire-mouse-handler/m-p/43521#M198</guid>
      <dc:creator>VernonChin</dc:creator>
      <dc:date>2014-01-29T21:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom cluster graphic does not fire mouse handler</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/custom-cluster-graphic-does-not-fire-mouse-handler/m-p/43522#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FWIW, I have also found a slight conflict in the API docs regarding hit-testing (specifically for the cluster graphic).&amp;nbsp; In the FlareClusterer documentation overview, it says&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If providing some form of combined graphic attribute information for multiple graphics is desired for the non-interactive grouping symbol, you could use a creative solution like using the &lt;STRONG&gt;ESRI.ArcGIS.Client.GraphicsLayer.FindGraphicsInHostCoordinates&lt;/STRONG&gt; in the Map Control to determine via a mouse click if the non-interactive grouping symbol was found and display a custom UIElement back to the user with the desired information&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in the GraphicsLayer.FindGraphicsInHostCoordinates() documentation it reads:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the System.Windows.Point location finds a clustered graphic, the individual graphics that the cluster represents will be returned&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me what I'm missing here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/custom-cluster-graphic-does-not-fire-mouse-handler/m-p/43522#M199</guid>
      <dc:creator>VernonChin</dc:creator>
      <dc:date>2014-01-30T18:12:30Z</dc:date>
    </item>
  </channel>
</rss>

