我想遍历RibbonControl中所有的ButtonItem List<ButtonItem> listBI = new List<ButtonItem>();
            foreach (Control con in this.ribbonControl1.Controls)
            {
                if (con is ButtonItem)
                {
                    listBI.Add((ButtonItem)con);
                }
            }这样写红字行会报错~无法将类型“System.Windows.Forms.Control”转换为“DevComponents.DotNetBar.ButtonItem”
我需要将这个集合传到其他方法 对这些控件进行操作~所以必须要这个类型的集合
这个集合我应该怎么取或者怎么转?