<?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: Custom Callout MVVM pattern in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253566#M11633</link>
    <description>&lt;P&gt;Due to a limitation in both Forms and .NET MAUI we don't have support for custom MAUI XAML content in the callout at this point. You can however do it with the native geo views. For example:&lt;BR /&gt;(mapView.Handler.PlatformView as Esri.ArcGISRuntime.UI.Controls.MapView).ShowCalloutAt(locations, nativeView);&lt;BR /&gt;&lt;BR /&gt;The native view would be a native Android View on Android or a UIView on iOS for instance.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 21:50:54 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2023-01-31T21:50:54Z</dc:date>
    <item>
      <title>Custom Callout MVVM pattern</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253562#M11632</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am in the process of researching what ArcGIS runtime SDK for MAUI (version 200.0.0) has to offer, as I will be transitioning from using Mapbox/Xamarin.Forms.&lt;/P&gt;&lt;P&gt;Below is a screenshot of a Callout in Mapbox, that I am trying recreate something similar here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TreyDalziel_0-1675199757301.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61764i18BE597C9C96E8B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TreyDalziel_0-1675199757301.png" alt="TreyDalziel_0-1675199757301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also found a previous post in this community from 2017 that has a response from &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1052"&gt;@dotMorten_esri&lt;/a&gt;&amp;nbsp;, discussing similar topics around creating a custom Callout (&lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/popups-in-arcgis-runtime-sdk-for-net/m-p/312338/highlight/true)" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/net-maps-sdk-questions/popups-in-arcgis-runtime-sdk-for-net/m-p/312338/highlight/true)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TreyDalziel_1-1675200235196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61765iEBA739448B6F6D98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TreyDalziel_1-1675200235196.png" alt="TreyDalziel_1-1675200235196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, there seems to be no solid example of how to do so (back in 2017, I am hoping there are some updates?)&lt;/P&gt;&lt;P&gt;I am interested in overriding the 'ControlTemplate', so I can present my own custom Callout, similar to what I was able to accomplish using Mapbox (reference above screenshot).&lt;/P&gt;&lt;P&gt;I have looked at the newest ArcGIS.Samples.Maui demo, but &lt;STRONG&gt;can only find samples of using a Callout with simple string parameters&lt;/STRONG&gt; &lt;STRONG&gt;in the CalloutDefinition&lt;/STRONG&gt; (the 'text' and 'detailText').&lt;/P&gt;&lt;P&gt;Is the type of custom callout from Mapbox possible to create using the MVVM pattern in MAUI?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253562#M11632</guid>
      <dc:creator>TreyDalziel</dc:creator>
      <dc:date>2023-01-31T21:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Callout MVVM pattern</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253566#M11633</link>
      <description>&lt;P&gt;Due to a limitation in both Forms and .NET MAUI we don't have support for custom MAUI XAML content in the callout at this point. You can however do it with the native geo views. For example:&lt;BR /&gt;(mapView.Handler.PlatformView as Esri.ArcGISRuntime.UI.Controls.MapView).ShowCalloutAt(locations, nativeView);&lt;BR /&gt;&lt;BR /&gt;The native view would be a native Android View on Android or a UIView on iOS for instance.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253566#M11633</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-01-31T21:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Callout MVVM pattern</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253569#M11634</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;Would this also support a native view for Windows? (Android, iOS AND Windows is what I am looking for)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253569#M11634</guid>
      <dc:creator>TreyDalziel</dc:creator>
      <dc:date>2023-01-31T21:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Callout MVVM pattern</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253589#M11635</link>
      <description>&lt;P&gt;Yup, on Windows you'd use the WinUI UI APIs&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 22:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-callout-mvvm-pattern/m-p/1253589#M11635</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-01-31T22:55:22Z</dc:date>
    </item>
  </channel>
</rss>

