<?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 WP7 GPSLayer shows null.How to set IsEnabled property code behind. in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/wp7-gpslayer-shows-null-how-to-set-isenabled/m-p/213182#M990</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 tried the sample code for location service example from below url &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/windowsphone/help/index.html#/Using_the_Location_Service/011v0000002t000000/"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/windowsphone/help/index.html#/Using_the_Location_Service/011v0000002t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is working fine and i can see blue marker on the map but i want to stop gps service on button click.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;myGpsLayer.IsEnabled = false;&lt;/STRONG&gt;&lt;SPAN&gt; but it's showing myGpsLayer null and throws error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of this i am not able to attach any event or can't set any property in code behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prashant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 09:22:55 GMT</pubDate>
    <dc:creator>prashantk</dc:creator>
    <dc:date>2012-05-29T09:22:55Z</dc:date>
    <item>
      <title>WP7 GPSLayer shows null.How to set IsEnabled property code behind.</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/wp7-gpslayer-shows-null-how-to-set-isenabled/m-p/213182#M990</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 tried the sample code for location service example from below url &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/windowsphone/help/index.html#/Using_the_Location_Service/011v0000002t000000/"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/windowsphone/help/index.html#/Using_the_Location_Service/011v0000002t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is working fine and i can see blue marker on the map but i want to stop gps service on button click.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;myGpsLayer.IsEnabled = false;&lt;/STRONG&gt;&lt;SPAN&gt; but it's showing myGpsLayer null and throws error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of this i am not able to attach any event or can't set any property in code behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prashant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 09:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/wp7-gpslayer-shows-null-how-to-set-isenabled/m-p/213182#M990</guid>
      <dc:creator>prashantk</dc:creator>
      <dc:date>2012-05-29T09:22:55Z</dc:date>
    </item>
  </channel>
</rss>

