问题:如题。
解决方法:
给Ribbon控件加上如下事件:
Code
private void ribbonControl1_ShowCustomizationMenu(object sender, RibbonCustomizationMenuEventArgs e)
{
foreach (BarItemLink itemLink in e.CustomizationMenu.ItemLinks)
{
itemLink.Visible = false;
}
}
private void ribbonControl1_ShowCustomizationMenu(object sender, RibbonCustomizationMenuEventArgs e)
{
foreach (BarItemLink itemLink in e.CustomizationMenu.ItemLinks)
{
itemLink.Visible = false;
}
}