<?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: Popup deprecations... how should I load attachments? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656910#M13723</link>
    <description>&lt;P&gt;In general you should use the new PopupElements, which will also help you get the attachments:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var popup = new Mapping.Popups.Popup(feature);
await popup.EvaluateExpressionsAsync();
var attElm = popup.EvaluatedElements.OfType&amp;lt;Mapping.Popups.AttachmentsPopupElement&amp;gt;().FirstOrDefault();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered just using the PopupViewer control from the toolkit for viewing? It'll support all the formatting specified in the popup-definition, or generate a default definition is one hasn't been defined.&lt;/P&gt;&lt;P&gt;You can also see its entire implementation here for reference:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/tree/main/src/Toolkit/Toolkit/UI/Controls/PopupViewer" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/tree/main/src/Toolkit/Toolkit/UI/Controls/PopupViewer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2025 23:07:29 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2025-10-09T23:07:29Z</dc:date>
    <item>
      <title>Popup deprecations... how should I load attachments?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656903#M13722</link>
      <description>&lt;P&gt;I've got my own popup UI and I'm trying to adjust to the deprecations within the Popups namespace.&amp;nbsp; I'm used to calling FetchAttachmentsAsync() on a PopupAttachmentManager instance, but with that class now being deprecated, it's not clear&amp;nbsp; how to accomplish the equivalent.&amp;nbsp; All deprecations in this part of the SDK indicate that you should use the Popup class for viewing and FeatureForm for editing.&amp;nbsp; My needs are strictly view only but I'm not seeing where attachments get loaded... appreciate any pointers.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 22:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656903#M13722</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2025-10-09T22:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Popup deprecations... how should I load attachments?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656910#M13723</link>
      <description>&lt;P&gt;In general you should use the new PopupElements, which will also help you get the attachments:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var popup = new Mapping.Popups.Popup(feature);
await popup.EvaluateExpressionsAsync();
var attElm = popup.EvaluatedElements.OfType&amp;lt;Mapping.Popups.AttachmentsPopupElement&amp;gt;().FirstOrDefault();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered just using the PopupViewer control from the toolkit for viewing? It'll support all the formatting specified in the popup-definition, or generate a default definition is one hasn't been defined.&lt;/P&gt;&lt;P&gt;You can also see its entire implementation here for reference:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/tree/main/src/Toolkit/Toolkit/UI/Controls/PopupViewer" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/tree/main/src/Toolkit/Toolkit/UI/Controls/PopupViewer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 23:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656910#M13723</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-10-09T23:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Popup deprecations... how should I load attachments?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656911#M13724</link>
      <description>&lt;P&gt;Thanks Morten.&amp;nbsp; My initial goal was to just handle the deprecations in the existing code base.&amp;nbsp; Then, to take a good look at the PopupViewer control to evaluate if I can switch over.&amp;nbsp; I'd built my own popup UI before you all included it in the toolkit and never really looked back.&amp;nbsp; Seems like it might be time to see if I can retire some of that code.&amp;nbsp; Appreciate the pointers.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 23:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/popup-deprecations-how-should-i-load-attachments/m-p/1656911#M13724</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2025-10-09T23:29:41Z</dc:date>
    </item>
  </channel>
</rss>

