<?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: How can I disable the zoomin function when double clicking on the map? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292968#M7541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer, I use MouseClick event to add point. If I mark e.handled = true in MouseLeftButtonDown event, this will also prevent the MouseClick event. So sometimes I cannot add point. Both MouseClick and MouseLeftButtonDown events share a same handler. Is there other way that I can prevent zooming/pan functionality? Thank you!:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Feb 2011 04:10:24 GMT</pubDate>
    <dc:creator>DanDong</dc:creator>
    <dc:date>2011-02-26T04:10:24Z</dc:date>
    <item>
      <title>How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292963#M7536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to use double clicking to close the polygon that I draw, but it seems that silverlight performs zooming in when you double click on the map by default. What can I do to disable this function? Any suggestions? Thank you!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 02:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292963#M7536</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-02-22T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292964#M7537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From this sample : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics&lt;/A&gt;&lt;SPAN&gt;, it doesn't seem that double clicking is zooming in while the draw is active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give more info about your issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 06:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292964#M7537</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-02-22T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292965#M7538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From this sample : &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics&lt;/A&gt;, it doesn't seem that double clicking is zooming in while the draw is active.&lt;BR /&gt;Could you give more info about your issue?&lt;BR /&gt; &lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Dominique! I went through the codes behind this sample. But I cannot figure out where dose this sample disable the zoom in function when double clicking on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, in my code, I use mouseclick to get the points, then store those points into a pointcollection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pPointCollection.add(new ESRI.ArcGIS.Client.Geometry.MapPoint(args.MapPoint.X, args.MapPoint.Y))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then add the pointcollection to Path, generate graphic based on the polyline and add this graphic into the graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;paths.Add(pPointCollection);
pPolyline.Paths=path;
ESRI.ArcGIS.Client.Graphic graphic =new ESRI.ArcGIS.Client.Graphics()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry=pPolyline,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol=lineSymbol
};
graphicsLayer.Graphics.Add(graphic);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mouseLeftButtonDown event, I was going to handle the double clicking.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292965#M7538</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2021-12-11T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292966#M7539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using Draw class as in the sample, while Draw.IsEnabled=true you will not be able to navigate the map through pan or zoom. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not using Draw and would like to disable zoom from double click, you can mark MouseLeftButtonDown event as e.Handled=true. This should prevent both pan and zoom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 13:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292966#M7539</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-23T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292967#M7540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are using Draw class as in the sample, while Draw.IsEnabled=true you will not be able to navigate the map through pan or zoom. &lt;BR /&gt;&lt;BR /&gt;If you are not using Draw and would like to disable zoom from double click, you can mark MouseLeftButtonDown event as e.Handled=true. This should prevent both pan and zoom.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Jennifer! I used e.Handled=true to disable the zooming in function. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292967#M7540</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-02-23T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292968#M7541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer, I use MouseClick event to add point. If I mark e.handled = true in MouseLeftButtonDown event, this will also prevent the MouseClick event. So sometimes I cannot add point. Both MouseClick and MouseLeftButtonDown events share a same handler. Is there other way that I can prevent zooming/pan functionality? Thank you!:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Feb 2011 04:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292968#M7541</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-02-26T04:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable the zoomin function when double clicking on the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292969#M7542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is right, MouseClick event is dependent on MouseLeftButtonDown and MouseLeftButtonUp events and will not fire if MouseLeftButtonDown had been marked handled. Can you use MouseLeftButtonDown event to perform the add instead? In doing so, you can mark the same event handled to prevent zoom on Double click.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-can-i-disable-the-zoomin-function-when-double/m-p/292969#M7542</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-28T15:32:08Z</dc:date>
    </item>
  </channel>
</rss>

