<r:RibbonWindow.Resources>
<r:RibbonCommand x:Key="AppMenuCommand" LabelTitle="Application Button"
SmallImageSource="Images/Notepad.png"
LargeImageSource="Images/Notepad.png"
ToolTipTitle="WPF4 Notepad"
ToolTipDescription="Notepad Application with Ribbon Sample" />

</r:RibbonWindow.Resources>

刚刚学习使用WPF的Ribbon控件,发现上述XAML代码报错,缺少引用DLL,经过和原作者的程序比较,发现缺少using System.IO;添加后问题解决.