在wpf中怎样使toolbar图标在不可用时灰色

如题所述

在两个Button之间添加<Separetor />试试。
如果是C#代码,试试
toolBar.Items.Add(new Separator());
温馨提示:答案为网友推荐,仅供参考