阅读背景:

通过代码向WPF功能区添加新项目

来源:互联网 

I'm using the WPF Office Ribbon, and I have a content view that I would like to have add new items to the ribbon when that view becomes active. I have code that adds a new RibbonCommand as well as a new RibbonButton to the group I want, but nothing happens when I add it. However, if I add a new group with the button, it comes up fine and is bound correctly. Is there some method to get it to update that I'm missing? I've tried UpdateLayout() and it does not work either. I'd really like to try and avoid rebuilding all the groups everytime the view changes.I'm using the WPF Office Ribbon, and I have a c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: