<?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: Dynamic text renderer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020349#M6081</link>
    <description>&lt;P&gt;Thanks! ActiveWindowChangingEvent (not Pane) seemed a good solution, although I haven't managed to get what I really want working at the moment. The events just seem too unpredictable - ElementsUpdatedEvent seemed promising, but it's really difficult to tell what's actually changed and very easy to fall into infinite loops.&lt;/P&gt;&lt;P&gt;I'm putting this on the back burner for now, but will accept your suggested solution above and will update if there are future developments.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 02:46:59 GMT</pubDate>
    <dc:creator>kingrollo</dc:creator>
    <dc:date>2021-01-27T02:46:59Z</dc:date>
    <item>
      <title>Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019328#M6057</link>
      <description>&lt;P&gt;Is it possible to create custom dynamic text fields through the SDK? Let's say (as a bad example) that I want to display the user's computer name on every printed layout. I would write some custom C# to extract the computer name, and ideally expose it through something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PC name: &amp;lt;dyn type="custom" property="computerName"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which would then render as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PC name: Donald's MacBook Pro&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case it wasn't clear, I'm just using this as a simple example - this isn't actually what I'm trying to do.&lt;/P&gt;&lt;P&gt;I can't figure out from the documentation whether this is possible, and where the rendering actually happens? Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 00:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019328#M6057</guid>
      <dc:creator>kingrollo</dc:creator>
      <dc:date>2021-01-23T00:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019529#M6061</link>
      <description>&lt;P&gt;This sample shows how to update a text element:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Layouts/TextElementAddin/UpdateText.cs#L55" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Layouts/TextElementAddin/UpdateText.cs#L55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 04:27:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019529#M6061</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-25T04:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019644#M6065</link>
      <description>&lt;P&gt;For getting computername:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.environment.machinename?view=netframework-4.8" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.environment.machinename?view=netframework-4.8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1019644#M6065</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-25T15:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020054#M6069</link>
      <description>&lt;P&gt;Thanks for responding, but that example just illustrates changing text in a non-dynamic element. It's not clear how the value&amp;nbsp;renders in a dynamic text element.&lt;/P&gt;&lt;P&gt;One theoretical approach would be to hook into an event called something like RenderDynamicTextElementEvent, but I can't see anything like that in the docs. Another might be to somehow tell the SDK to render the value in place of the dynamic text, but I can't see how to do that either.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 15:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020054#M6069</guid>
      <dc:creator>kingrollo</dc:creator>
      <dc:date>2021-01-26T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020161#M6073</link>
      <description>&lt;P&gt;It doesn't look like Esri supports ways for devs to implement custom &amp;lt;dyn&amp;gt;s.&lt;/P&gt;&lt;P&gt;I'd try using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic20763.html" target="_self"&gt;CustomProperties&lt;/A&gt;, maybe with a similar dyn-like language, to populate TextProperties.Text when a suitable event fires.&lt;/P&gt;&lt;P&gt;Careful with LayoutViewEvent - if TextProperties.Text is changed when it fires, an infinite loop can ensue.&lt;/P&gt;&lt;P&gt;As I recall, ActivePaneChangingEvent doesn't have this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 18:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020161#M6073</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-26T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text renderer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020349#M6081</link>
      <description>&lt;P&gt;Thanks! ActiveWindowChangingEvent (not Pane) seemed a good solution, although I haven't managed to get what I really want working at the moment. The events just seem too unpredictable - ElementsUpdatedEvent seemed promising, but it's really difficult to tell what's actually changed and very easy to fall into infinite loops.&lt;/P&gt;&lt;P&gt;I'm putting this on the back burner for now, but will accept your suggested solution above and will update if there are future developments.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 02:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dynamic-text-renderer/m-p/1020349#M6081</guid>
      <dc:creator>kingrollo</dc:creator>
      <dc:date>2021-01-27T02:46:59Z</dc:date>
    </item>
  </channel>
</rss>

