<?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: Suggestions for MouseDown and Map Pan conflict in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384030#M9953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Map.Click event does not conflict with the map pan functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 20:22:34 GMT</pubDate>
    <dc:creator>StephenSporik</dc:creator>
    <dc:date>2010-09-08T20:22:34Z</dc:date>
    <item>
      <title>Suggestions for MouseDown and Map Pan conflict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384027#M9950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a polygon Feature Layer that covers continuously most my map.&amp;nbsp; I have set an event on the MouseLeftButtonDown so the user can open a custom Identify window related to the feature, in addition to the map zooming to the boundary extent of that feature. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works great for showing detailed information and including some silverlight charting using the attribute data.&amp;nbsp; I also have several other layers that use map tips and query tools so I wanted to use this approach to distinguish these polygons from the other feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only problem has been that the pan functionality of the silverlight api becomes interrupted by the click event of the feature layer.&amp;nbsp; And since the feature layer covers almost everything it is a constant issue for the user.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone come across this issue and thought of a work around aside from creating a custom navigation tool and putting it in a toolbar?&amp;nbsp; I am using one of the ESRI basic templates and I don't want to spend too much time altering the arrangement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 20:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384027#M9950</guid>
      <dc:creator>StephenSporik</dc:creator>
      <dc:date>2010-09-07T20:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for MouseDown and Map Pan conflict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384028#M9951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you thought about using the Map.Click event instead to trigger the window? Click wont be raised if the user did a pan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 00:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384028#M9951</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-08T00:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for MouseDown and Map Pan conflict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384029#M9952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same problem, but I've found a workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bear in mind I'm working on a WPF app, but I guess should be working for SL too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My actual deal is to create an ElementLayer where the user can drag, resize and interact with objects. I must intercept most of the input events and some other stuffs too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: This as follows is a ROUGH way to do it and -personally- I'd prefer 1000 times that ESRI staff would give a better interface. In the meantime I must use anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) in the code, trigger the LayoutUpdated event, to "ensure" that the Map control has been built totally (tiled layer and an element layer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) declare a Canvas var somewhere in the app;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) within the LayoutUpdate event handler scan the visual tree (VisualTreeHelper) from the Map control toward the descendant, until you find a Canvas (few steps);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) set the reference of the found Canvas to the declared var and SET the background of the Canvas itself as transparent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) further subscribe any event you need for the Canvas (you should also UN-subscribe somewhere);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) within the subscribed event handlers, use the Handled property of the arguments to TRUE if you code should catch the event, otherwise the event will walk-up the visual tree to the Map control manager for the standard handlers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My suggestion to the ESRI staff is to offer something similar to the developer, without forcing a tree-inspection. That works, but it is the worst way to solve a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 03:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384029#M9952</guid>
      <dc:creator>MarioVernari</dc:creator>
      <dc:date>2010-09-08T03:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for MouseDown and Map Pan conflict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384030#M9953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Map.Click event does not conflict with the map pan functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 20:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestions-for-mousedown-and-map-pan-conflict/m-p/384030#M9953</guid>
      <dc:creator>StephenSporik</dc:creator>
      <dc:date>2010-09-08T20:22:34Z</dc:date>
    </item>
  </channel>
</rss>

