Hi Jesus,
You can change the text (Customize) in the context menu by getting the CommandBar using GetCommandBarManager method and get hold of
DockBarContextMenu. This is the popupMenu which gets shown when you right click on the toolbar area. Handle ParentBarItem''s BeforePopup event and change the text of "Customize" baritem.
this.mainFrameBarManager1.GetCommandBarManager().DockBarContextMenu.Pare
ntBarItem.BeforePopup+=new
CancelEventHandler(ParentBarItem_BeforePopup);
private void ParentBarItem_BeforePopup(object sender, CancelEventArgs e)
{
foreach(BarItem baritem in
this.mainFrameBarManager1.GetCommandBarManager().DockBarContextMenu.Pare
ntBarItem.Items)
if(baritem.Text=="Customize...")
baritem.Text="Personalizar";
}
I have also attached a sample that demonstrates this completely. Please refer to it and let me know if this meets your requirements.
44898-TextChange.zip
Thank you,
J.Nagaraj