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
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.
Hallo Andrew,
I submitted a sugestion to extend the Infragistics AutoDisabledImage to support DrawingImages, but are there any steps I could take to support the graying functionality for my DrawingImages myself.
How is can I extend the AutoDisabledImage myself ?
Thanks in advance.
Hi!
I have the same problem with the xaml icons and also with the menu tool. The menu indicator isn't grayed out, too. Do you think you will improve your software in this case?
Kind regards,
SchoppeJantzen
I don't think its that simple or we would have had it in the original implementation. Currently that element only supports handling BitmapSources and to do that it essentially makes a manipulated copy of the original imagesource. To support DrawingImages, you would have to come up with a way to alter the look of the element or the image.