RibbonCommand was not found

前端 未结 3 2006
感动是毒
感动是毒 2021-02-10 09:42

I see the majority of WPF Ribbon examples out there use some code like

xmlns:r=\"clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary\         


        
3条回答
  •  一个人的身影
    2021-02-10 10:22

    If you are using the new Microsoft WPF Ribbon, the RibbonCommand type has been removed. The Command property is now an ICommand type.

    To set the command on a RibbonButton, you can do the following:

    
    

    or use any command that implements ICommand.

提交回复
热议问题