Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Icons in Ribbon not grayed
posted

Hi,

for RibbonTools the associated icons are not shown with a gray overlay when the commands CanExecute-Method retruns false. The only indicator that the function is not available is that the MouseOver-Effect is not shown. Did I anything wrong or doesn’t Infragistics Ribbon support this behavior?

The icons I provide a DrawingImage with an DrawingBrush set.

Thanks in advance

Stef

 

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    WPF doesn't provide any functionality for automatically displaying images as grayed out. We have our own element that does this but it will only work for BitmapSource images so you will probably need to change the image you use based on the IsEnabled property of your tool. You can also submit a suggestion for extending the AutoDisabledImage to support DrawingImages.

Children