Animate ribbon button ImageSourceLarge opacity

Ribbon for WPF Forum

Posted 2 months ago by Daniel Constantin - ModuleWorks GmbH
Version: 24.1.2
Avatar

Hi!

I want to animate the opacity for the ImageSourceLarge only, not for the entire button. If I do it for the entire button I lose the borders and other colors while the opacity is small. I want to be able to alter the opacity only for that image if possible.

Kind regards,

Daniel

Comments (1)

Answer - Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

There isn't a built-in way to only affect the image's opacity from our control API.  Can you tell us more about the usage scenario?

If you simply wanted to change the opacity of the image, you could supply the control's ImageSourceLarge property with an ImageSource value that already has the target opacity applied.  The control will display the image it is provided, so if that provided image already is semi-transparent, it will render that way.  This won't be animated, but would have a target opacity.

Or if you want to truly animate the image opacity with smooth transitions, you'd need to probably clone our control template and update it to support opacity animations on the DynamicImage control in the control template.


Actipro Software Support

The latest build of this product (v24.1.4) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.