<?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 How to change the cursor when doing measure action? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131931#M3275</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 want to change the cursor from hand shape to arrow shape when doing measure action. I have changed the measure action from XAML to code-behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void Measure_Click(object sender, System.Windows.RoutedEventArgs e)
{
MyMap.Cursor = Cursors.Arrow;&amp;nbsp;&amp;nbsp; //change the cursor to arrow shape
MyMeasureAction m = new MyMeasureAction();&amp;nbsp; //initialize a MyMeasureAction class
m.MeasureMode = ESRI.ArcGIS.Client.Actions.MeasureAction.Mode.Polygon;&amp;nbsp; //MeasureMode is polygon
m.DisplayTotals = false;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do not display total distance
m.FillSymbol = LayoutRoot.Resources["DrawFillSymbol"] as FillSymbol;
m.DistanceUnit = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;
m.MapUnits = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;&amp;nbsp; //the unit of the map is Feet
m.Attach(MyMap);&amp;nbsp;&amp;nbsp;&amp;nbsp; //bind this action to MyMap
m.Execute();&amp;nbsp;&amp;nbsp;&amp;nbsp; //execute this action
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the weird thing is when I hit the button, the cursor cannot be changed to arrow shape. If I put this line under other button click events. It works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
MyMap.Cursor = Cursors.Arrow;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this might due to the measure action itself? In the sample, it use hand cursor to perform measure action. Is there any method to change the cursor shape? 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>Wed, 02 Mar 2011 02:37:49 GMT</pubDate>
    <dc:creator>DanDong</dc:creator>
    <dc:date>2011-03-02T02:37:49Z</dc:date>
    <item>
      <title>How to change the cursor when doing measure action?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131931#M3275</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 want to change the cursor from hand shape to arrow shape when doing measure action. I have changed the measure action from XAML to code-behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void Measure_Click(object sender, System.Windows.RoutedEventArgs e)
{
MyMap.Cursor = Cursors.Arrow;&amp;nbsp;&amp;nbsp; //change the cursor to arrow shape
MyMeasureAction m = new MyMeasureAction();&amp;nbsp; //initialize a MyMeasureAction class
m.MeasureMode = ESRI.ArcGIS.Client.Actions.MeasureAction.Mode.Polygon;&amp;nbsp; //MeasureMode is polygon
m.DisplayTotals = false;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do not display total distance
m.FillSymbol = LayoutRoot.Resources["DrawFillSymbol"] as FillSymbol;
m.DistanceUnit = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;
m.MapUnits = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;&amp;nbsp; //the unit of the map is Feet
m.Attach(MyMap);&amp;nbsp;&amp;nbsp;&amp;nbsp; //bind this action to MyMap
m.Execute();&amp;nbsp;&amp;nbsp;&amp;nbsp; //execute this action
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the weird thing is when I hit the button, the cursor cannot be changed to arrow shape. If I put this line under other button click events. It works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
MyMap.Cursor = Cursors.Arrow;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this might due to the measure action itself? In the sample, it use hand cursor to perform measure action. Is there any method to change the cursor shape? 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>Wed, 02 Mar 2011 02:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131931#M3275</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-03-02T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the cursor when doing measure action?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131932#M3276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is by design, map.Cursor is changed to Cursors.Hand while MeasureAction is active and then changed back to previous cursor when disabled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 17:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131932#M3276</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-02T17:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the cursor when doing measure action?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131933#M3277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is by design, map.Cursor is changed to Cursors.Hand while MeasureAction is active and then changed back to previous cursor when disabled.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that mean I cannot change the cursor shape when measure action is doing its work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131933#M3277</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-03-03T00:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the cursor when doing measure action?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131934#M3278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MeasureAction already overrides the map cursor and cannot be changed, sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131934#M3278</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-03T00:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the cursor when doing measure action?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131935#M3279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;MeasureAction already overrides the map cursor and cannot be changed, sorry.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok �?�? at least I know that we cannot change it. Thank you Jennifer &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>Thu, 03 Mar 2011 03:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-change-the-cursor-when-doing-measure-action/m-p/131935#M3279</guid>
      <dc:creator>DanDong</dc:creator>
      <dc:date>2011-03-03T03:57:54Z</dc:date>
    </item>
  </channel>
</rss>

