Grey images for disabled buttons

Ribbon for WPF Forum

Posted 14 years ago by AlexanderB - Software Developer, Edifecs
Version: 10.2.0531
Avatar
Hi,

When some ribbon's button with image gets disabled, its image will be shown semi-transparent. Is there any way to make the button's image grey when it is disabled?

Thanks,
Alexander

Comments (4)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Alexander,

Sorry but you'd have to retemplate the controls to do grayscale images instead.


Actipro Software Support

Posted 14 years ago by AlexanderB - Software Developer, Edifecs
Avatar
Clould you please provide some details briefly:
- where from I can get control templates to modify;
- please point me what I should change in template to achive what I need?

I think I should use my implementation of image (that is gray when disabled) inside of your controls, right?
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Alexander,

Whoever has access to your company's Organization Purchases page can get the styles from there. You'd need to modify the various button XAML files.

It would be hard to use a distinct image for grayscale unless you add some new attached property that lets you specify it and do a trigger for when to show it. Alternatively you could perhaps make a shader effect for grayscale and apply that via a template trigger to the Image in the template when the control is disabled.


Actipro Software Support

Posted 14 years ago by AlexanderB - Software Developer, Edifecs
Avatar
Thank you for these tips. I will try it!
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.