Select to view content in your preferred language

IPlugInWrapper Tab Caption won't change!

192
1
12-11-2025 11:08 AM
TomLewis
Occasional Contributor

I'm attempting to change the Caption on my PlugIn ribbon tab at runtime. (I want to do this to identify the environment the user is in since we have DEV, QA, TST and PROD environments. They are all identical and we need to know where we are.)

Anyway, I found another thread about this, but it was never resolved other than to say that the CommandType passed back for the Tab was actually set to Button. Sounds like a bug to me. Anyway, I can change the Caption property and it retains that forever. (I know this because I queried it in several pieces of code and it shows the new name.) But it is not updating the overridden name in the UI.

I've tried in the Module Initialize as well as random places in the code. I also tried in and out of a QueuedTask. Also tried the create param at true and false.

Seems like a bug to me. Am I missing something?

Here's my code:

var plugin = FrameworkApplication.GetPlugInWrapper("TDMSArcGISPro_Tab1", false);
plugin.Caption = "TDMS-Dev";

0 Kudos
1 Reply
CharlesMacleod
Esri Regular Contributor

Tabs are configured in DAML only. There is no model object available in the SDK.

0 Kudos