Create a new actionItem in the program's functions?

Code:

CommandRegistry command = IoC.Get();
var actionItem = command.FindItem(“Connect2”);
UXSiteSetup uXSiteSetup = new UXSiteSetup();
uXSiteSetup.EntryId = actionItem.Id;
uXSiteSetup.EntryCaption = actionItem.Content;
uXSiteSetup.UXSiteIdPath = “VcTabHome/VcCustom”;
command.RegisterActionItem(actionItem, uXSiteSetup)

I want to create an actionItem for a program function, how do I set my UXSiteIdPath path?

You need to use the IUXConfiguration.RegisterSite(...) method to first add a UXSiteSetup where UXSiteType property is set as UXSiteType.RibbonGroup to the approriate context’s ribbon UXSite and then add your command into that new group.

What UXSites exist by default and how they relate to each other is maybe easiest to understand by looking at how they are configured in the VisualComponents.Engine.exe.config file in the VC installation folder.

I’ve followed your reminder to do so, but there’s still a problem.

Why doesn’t the name appear in this ribbon?

You need to set up your ribbon group something like this:

uxSite = new UXSiteSetup {
    UXSiteIdPath = "VcTabTeach/MyRibbonGroup",
    UXSiteCaption = "My ribbon group",
    UXSiteType = UXSiteType.RibbonGroup
};

Okay, thanks for your help!