<?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: Web Map Popup - Custom Attribute Display in Runtime WPF popup in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169205#M10933</link>
    <description>&lt;P&gt;&lt;SPAN&gt;PopupDefinition.Description is the definition with templated parameters.&lt;BR /&gt;To get the value for a specific Popup, you can use PopupManager.&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Popups.PopupManager.CustomDescriptionHtml.html" target="_self"&gt;CustomDescriptionHtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 09:21:38 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2022-04-29T09:21:38Z</dc:date>
    <item>
      <title>Web Map Popup - Custom Attribute Display in Runtime WPF popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169054#M10931</link>
      <description>&lt;P&gt;I have a Portal webmap that we use in an Experience Builder app. The user clicks or touches a polygon and the popup displays a single item which is hyperlink text that opens a virtual folder. Works well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the same webmap to serve data to a WPF Runtime app. Clicks work. I can retrieve the data and display it in a popup. If I set the layer popup to a list of attributes all the attributes display. If I set the layer's popup to be a custom attribute display, the popup shows the link text but not as a clickable hyperlink.&lt;/P&gt;&lt;P&gt;If I stop at a breakpoint I see:&lt;/P&gt;&lt;P&gt;popup.CorePopup.PopupDefinition.Description&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;a href='{folderLink}' rel='nofollow ugc' target='_blank'&amp;gt;PrePlan Documents&amp;lt;/a&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which looks correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to grab the actual custom display? If not is there a way to programmatically create the hyperlink in the popup?&lt;/P&gt;&lt;P&gt;I can think of a few workarounds but being new to the Runtime and WPF environment I was wondering if custom attribute links are available?&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 21:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169054#M10931</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2022-04-28T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web Map Popup - Custom Attribute Display in Runtime WPF popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169205#M10933</link>
      <description>&lt;P&gt;&lt;SPAN&gt;PopupDefinition.Description is the definition with templated parameters.&lt;BR /&gt;To get the value for a specific Popup, you can use PopupManager.&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Popups.PopupManager.CustomDescriptionHtml.html" target="_self"&gt;CustomDescriptionHtml&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169205#M10933</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2022-04-29T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Web Map Popup - Custom Attribute Display in Runtime WPF popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169697#M10951</link>
      <description>&lt;P&gt;Thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearly that contains the custom HTML. When is inspect&amp;nbsp;MyPopupViewer.PopupManager.CustomDescriptionHtml; it shows as attached. Clickable link works great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted several ways of displaying that in the popup to no avail. As I've indicated this is my first foray into Runtime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fairly simple code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                       FeatureLayer incidentLayer = StationConstants.sfdTargetHazards_FL; 
                        var result = await myMapView.IdentifyLayerAsync(
                            incidentLayer,
                            e.Position,
                            15,
                            false
                        );
                        Popup popup = result.Popups.FirstOrDefault();
                        MyPopupViewer.PopupManager = new PopupManager(popup);
                        popupGrid.Visibility = Visibility.Visible;&lt;/LI-CODE&gt;&lt;P&gt;Tried some things that clearly do not work such as:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; MyPopupViewer.PopupManager.Popup.PopupDefinition.Description = MyPopupViewer.PopupManager.CustomDescriptionHtml;&lt;/LI-CODE&gt;&lt;P&gt;That code shows the link text but not as a hyperlink. The PopupManager.ShowCustomDescriptionHtml returns true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll continue to research and experiment. If anyone has some direction for me, much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/web-map-popup-custom-attribute-display-in-runtime/m-p/1169697#M10951</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2022-05-02T13:45:08Z</dc:date>
    </item>
  </channel>
</rss>

