<?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: Event for Layer Name Change in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831247#M3326</link>
    <description>&lt;P&gt;You can use the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12742.html" target="_self"&gt;MapMemberPropertiesChangedEvent&lt;/A&gt;&amp;nbsp;class.&amp;nbsp; The MapMemberPropertiesChangedEventArgs class has an "EventHint" property that can be used to find if the Name has changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2026 13:50:49 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2026-01-20T13:50:49Z</dc:date>
    <item>
      <title>Event for Layer Name Change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831246#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Is there any event that I can subscribe to for seeing when the layer name is changed? I was hoping for something similar to LayersAddedEvent or LayersRemovedEvent.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 19:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831246#M3325</guid>
      <dc:creator>SusanFarley</dc:creator>
      <dc:date>2019-10-23T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Event for Layer Name Change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831247#M3326</link>
      <description>&lt;P&gt;You can use the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12742.html" target="_self"&gt;MapMemberPropertiesChangedEvent&lt;/A&gt;&amp;nbsp;class.&amp;nbsp; The MapMemberPropertiesChangedEventArgs class has an "EventHint" property that can be used to find if the Name has changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 13:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831247#M3326</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2026-01-20T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Event for Layer Name Change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831248#M3327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have subscribed to this event but now have a slight issue that I don't understand. Do my code is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main form:&lt;/P&gt;&lt;P&gt;private void LayersChanged (MapMemberPropertiesChangedEventArgs obj)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;cLayerSelection.RefreshLayerSelection();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;Then in the cLayerSelect control I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void RefreshLayerSelection() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (arcFac == null) return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcFac.GetLayers();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (FeatureLayer fl in arcFac.LinkLayers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layeritems.Add(fl);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (FeatureLayer fl in arcFac.NodeLayers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layeritems.Add(fl);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;UpdateLayerGrid(); &lt;SPAN style="color: #0000ff;"&gt;//this is a grid where the Items are set to the global variable layerItems&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void UpdateLayerGrid()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; gridLayers.RefreshData(); &lt;SPAN style="color: #0000ff;"&gt;//this throws an error 'System.InvalidOperationException' occurred ... The calling thread cannot access this object because a different thread owns it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;I call RefreshLayers from the LayersAddedEvent and LayersRemovedEvent and do not get this error. What is causing it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;Susan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/831248#M3327</guid>
      <dc:creator>SusanFarley</dc:creator>
      <dc:date>2019-10-24T19:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Event for Layer Name Change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/1678627#M13388</link>
      <description>&lt;P&gt;the link doesn't work anymore&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 15:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/1678627#M13388</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2026-01-19T15:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Event for Layer Name Change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/1678780#M13390</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/332020"&gt;@Vidar&lt;/a&gt;&amp;nbsp;I have fixed the link now. Thanks for catching that.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 16:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-layer-name-change/m-p/1678780#M13390</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2026-01-20T16:58:40Z</dc:date>
    </item>
  </channel>
</rss>

