在WPF中删除了RibbonCommand [英] RibbonCommand removed in WPF
本文介绍了在WPF中删除了RibbonCommand的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用WPF功能区,而在后续教程中,我仍然看到功能区命令被使用
Im using the WPF Ribbon, while following tutorials I keep seeing RibbonCommand being used
<r:RibbonWindow.Resources>
<ResourceDictionary>
<r:RibbonCommand x:Key="QATButton"
CanExecute="RibbonCommand_CanExecute"
LabelTitle="QAT Button"
LabelDescription="This is a sample QAT Button"
ToolTipTitle="QAT Button"
ToolTipDescription="This is a sample QAT Button, it doesn't do anything"
SmallImageSource="Images\save.png" LargeImageSource="Images\save.png" />
</ResourceDictionary>
</r:RibbonWindow.Resources>
推荐答案
显然,我应该使用
Apparently I should use the ICommand interface, could anyone post a code snippit of how I would convert the RibbonCommand in the OP to an ICommand?
谢谢,
伊蒙(Eamonn)
这篇关于在WPF中删除了RibbonCommand的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文