Group caption change on map view change

123
1
09-03-2020 11:47 PM
ThanHtetAung_EsriAu
Esri Regular Contributor

Hi Wolfgang Kaiser‌,

Related to this question you answer for me before Loadonclick button - ribbon bar 

The user want to display the map name on Group caption which that ribbon button belongs to.

I manage to change once on project load 

FrameworkApplication.GetPlugInWrapper("Groupid").Caption = $"Map: {MapView.Active.Map.Name}";

However subsequent MapViewActivateEvent does not seem to be affective.

When I debug, the caption property is updated but the ribbon UI does not update.

How shall I make it affective? 

Tags (1)
0 Kudos
1 Reply
ThanHtetAung_EsriAu
Esri Regular Contributor

Any thought Wolfgang Kaiser‌? 

Is that only one time change allowed?

And I am using ArcGIS pro sdk 2.5

0 Kudos