callback a gallery in xml ribbon

K

khoick245

hi all. i built a gallery on a xml ribbon. in xml file, the gallery ha
structure:

<gallery id="glrSymbolic"
getItemLabel="glrSymbolic_getItemLabel">

<item id="id1" label="%LastName%" />
<item id="id2" label="%FirstName%" />
<item id="d3" label="%UserName%" />
<item id="id4" label="%Email%" />
</gallery>


in the cs file. i callback event getItemLabel

public string glrSymbolic_getItemLabel(Office.IRibbonControl control
string index)
{
switch (index)
{
case "id1":
return "%LastName%";
case "id2":
return "%FirstName%";
case "id3":
return "%UserName%";
case "id4":
return "%Email%";
default:
return String.Empty;
}
}

my purpose is that i want to get the label of items in the galler
whenever i choice a item from gallery but it's not work. can you giv
me some suggestions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top