<?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: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533830#M6518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am at the origin of this thread and see that I am not alone to request the evolution, but it seems that there is no plan to get ArcGIS component work with standard Xamarin Forms project based on PCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With some test and hours, we found an acceptable solution that permit to work with ArcGIS component in such projet. We created a standard XamarinForms PCL project and added a Shared project in which we focused all code using ArcGIS library. And we defined some Interface that permits to the PCL project to get playing with ArcGIS component. In the Shared Library we define some class that implements Interface. And we get the class in the PCL project using Dependency.&lt;/P&gt;&lt;P&gt;For exemple, suppose you have this definition in your XAML page&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;ContentView x:Name="_mapContainer" Grid.Row="0"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then you define an interface IMapView&lt;/P&gt;&lt;P&gt;You define a ContentView in your shared project that contains the MapView control of ArcGIS and you make the implemntation file of this view implementing the IMapView interface.&lt;/P&gt;&lt;P&gt;Then in your PCL project, you get instance of this class by this instruction&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IMapView mapView = DependencyService.Get&amp;lt;IMapView&amp;gt;(DependencyFetchTarget.NewInstance);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_mapContainer.Content = mapView as ContentView&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work in our case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 07:53:49 GMT</pubDate>
    <dc:creator>EricDUCOS1</dc:creator>
    <dc:date>2017-10-27T07:53:49Z</dc:date>
    <item>
      <title>Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533819#M6507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are working on a new Xamarin project that would include ArcGIS components.&lt;/P&gt;&lt;P&gt;We followed Microsoft recommendation saying that it is better to use the Xamarin model with Portable Library (PCL), not shared components.&lt;/P&gt;&lt;P&gt;But I do not see how to integrate ArcGIS NuGet package in such a project. I get every time&amp;nbsp; an error saying that I try to to install a package that target .NETPortable but that the package is not compatible with such target...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me what is the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably a version of this Runtime SDK should be supplied supporting PCL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 08:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533819#M6507</guid>
      <dc:creator>EricDUCOS1</dc:creator>
      <dc:date>2016-11-24T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533820#M6508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are technical aspects that hinder Esri from providing the Runtime in a PCL-compatible way. Therefore, only shared projects are supported (at least that's what I've heard from them).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 08:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533820#M6508</guid>
      <dc:creator>alehmann</dc:creator>
      <dc:date>2016-11-25T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533821#M6509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct. Unfortunately there are technical limitations that prevents us to deliver the API to PCL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 09:32:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533821#M6509</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2016-11-25T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533822#M6510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is PCL support something that we can expect in a future release?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FWIW, this is the message I see when I try to install Esri.ArcGISRuntime.Xamarin.Forms for a Portable Class Library project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Could not install package 'Esri.ArcGISRuntime.Xamarin.Forms 100.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.6,Profile=Profile44', but the package does not contain any assembly references or content files&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;that are compatible with that framework. For more information, contact the package author.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533822#M6510</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-02-21T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533823#M6511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As mentioned in the earlier post, we cannot support PCL due it's technical limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533823#M6511</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-02-23T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533824#M6512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are actively researching supporting .NET Standard 2.0+ in the future, and this _might_ just be possible now. However it would require some breaking changes and dropping support for older platforms, but I'm hoping&amp;nbsp;we'll be able to go there, but not something we can promise at this point, nor give a timeline for.&lt;/P&gt;&lt;P&gt;So if &amp;nbsp;we do this&amp;nbsp;it would be out in the future. Until then shared projects is the way to go for Xamarin + ArcGIS Runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 17:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533824#M6512</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-02-23T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533825#M6513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the info. Looking forward to more goodness in Palm Springs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 18:20:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533825#M6513</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2017-02-27T18:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533826#M6514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This made me /sad to learn that PCL's aren't supported. I found this out the hard way today. The whole point of Xamarin forms is to have one code base delivered to multiple platforms. But by limiting us to Shared libraries (instead of portable libraries), we can't even add a service reference or a nuget package to the shared library...thus totally limiting us to what we can do. PCL is the way of the future Xamarin / Crosss platform applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;totally frustrating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 20:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533826#M6514</guid>
      <dc:creator>brianbullas</dc:creator>
      <dc:date>2017-03-01T20:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533827#M6515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The whole point of Xamarin forms is to have one code base delivered to multiple platforms&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;A shared project still gives you one code base - it just doesn't give you one binary&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;we can't even add a service reference or a nuget package to the shared library&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You would add the reference to each project, but still write the code in the shared library&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 01:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533827#M6515</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-03-02T01:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533828#M6516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN WILL THERE BE A PCL VERSION?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 23:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533828#M6516</guid>
      <dc:creator>JamieBurmeister</dc:creator>
      <dc:date>2017-10-25T23:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533829#M6517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no plans to support PCLs. We are hoping to support .NET Standard in the future, but please see my response here regarding that:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/message/711402-support-for-net-standard#comment-711590"&gt;https://community.esri.com/message/711402-support-for-net-standard#comment-711590&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 00:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533829#M6517</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-10-26T00:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533830#M6518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am at the origin of this thread and see that I am not alone to request the evolution, but it seems that there is no plan to get ArcGIS component work with standard Xamarin Forms project based on PCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With some test and hours, we found an acceptable solution that permit to work with ArcGIS component in such projet. We created a standard XamarinForms PCL project and added a Shared project in which we focused all code using ArcGIS library. And we defined some Interface that permits to the PCL project to get playing with ArcGIS component. In the Shared Library we define some class that implements Interface. And we get the class in the PCL project using Dependency.&lt;/P&gt;&lt;P&gt;For exemple, suppose you have this definition in your XAML page&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;ContentView x:Name="_mapContainer" Grid.Row="0"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then you define an interface IMapView&lt;/P&gt;&lt;P&gt;You define a ContentView in your shared project that contains the MapView control of ArcGIS and you make the implemntation file of this view implementing the IMapView interface.&lt;/P&gt;&lt;P&gt;Then in your PCL project, you get instance of this class by this instruction&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IMapView mapView = DependencyService.Get&amp;lt;IMapView&amp;gt;(DependencyFetchTarget.NewInstance);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_mapContainer.Content = mapView as ContentView&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work in our case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 07:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533830#M6518</guid>
      <dc:creator>EricDUCOS1</dc:creator>
      <dc:date>2017-10-27T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533831#M6519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;I would also like to use the ESRI Component with a PCL project. Could you explain a little bit more how did you manage to do that ? I've already created a Arcgis Runtime shared project (in the same solution of the PCL). Can you share some code please, specifically the interface in the PCL and the code in the Shared Project.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 15:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533831#M6519</guid>
      <dc:creator>CharlesMoszkowicz</dc:creator>
      <dc:date>2018-02-16T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533832#M6520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point PCL is essentially dead, and getting replaced by .NET Standard.&lt;/P&gt;&lt;P&gt;I think you're better off creating a multi-targeting project instead. That'll set you up great for moving to .NET Standard, while having a single project output you can share.&lt;/P&gt;&lt;P&gt;&lt;A href="https://oren.codes/2017/01/04/multi-targeting-the-world-a-single-project-to-rule-them-all/"&gt;https://oren.codes/2017/01/04/multi-targeting-the-world-a-single-project-to-rule-them-all/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 17:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533832#M6520</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-02-20T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533833#M6521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...I just pushed a sample up on GitHub that demonstrates multi-targeting to help you get started:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-demos-dotnet/blob/master/src/MultiTargeting"&gt;https://github.com/Esri/arcgis-runtime-demos-dotnet/blob/master/src/MultiTargeting&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 19:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533833#M6521</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-02-20T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use of ArcGIS Runtime SDK .NET in Xamarin app with PCL config ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533834#M6522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There seems to be a problem with my mail box, so the answer did not get into the thread...&lt;/P&gt;&lt;P&gt;I republish my answer below:&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry not to have given answer before…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I think that Morten given some part of answer just because now when you create a Xamarin Project, PCL project is replaced by .NET Standard project. But I did not test if ArcGIS Runtime SDK .NET is compatible with Standard (I read a thread about that but did not verify…)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you already have a Xamarin with PCL project, you can do something like we have done to arrange the things…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your Shared project you create a Xamarin ContentView with the MapView control. In the code behind, you add an interface like this…&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;partial&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;class&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #2b91af;"&gt;MapPageView2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; : ContentView, IMapView&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMapView defines some method that you will use to initialize Map and returning some data from ESRI SDK like layers, or to react to some event like touch .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In each specific projet for Android, iOS or Windows, you use DependencyService to register the class defined in the shared project like for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;DependencyService.Register&amp;lt;IMapView, MapPageView2&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In he PCL project you define a new Xamarin XAml page tha will contains a ContentView control like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;ContentView&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: red;"&gt; x&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: red;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;="_mapContainer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: red;"&gt; Grid.Row&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;="0"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(here my control belongs to a grid…)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And somewhere in the code behind of this page, you make the binding….I discovered that this code has to be put in different place according to the plateform…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For UWP, this is in the constructo:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; (Device.RuntimePlatform == Device.UWP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; mapView = DependencyService.Get&amp;lt;IMapView&amp;gt;(DependencyFetchTarget.NewInstance);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapView.SetMap(); // This method defined in the interface and implemented in the class in the shared projet use configuration to load a WebMap in the map control&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mapContainer.Content = mapView &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; ContentView;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Android, the same code has to be placed in the OnAppearing…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not really good coding, but it works…I really hope that the new Standard platform used by new Xamarin project will work without shared project for ArcGIS .NET SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that my explanations will help you in some way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 22:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-of-arcgis-runtime-sdk-net-in-xamarin-app-with/m-p/533834#M6522</guid>
      <dc:creator>EricDUCOS1</dc:creator>
      <dc:date>2018-02-20T22:14:32Z</dc:date>
    </item>
  </channel>
</rss>

