Posted 3 years ago by Patrick Neubauer
Version: 20.1.1
Platform: .NET 5.0
Environment: Windows 10 (64-bit)

Hi there,

I´m having problems using a different ImageProvider for ribbon buttons.
Here is my xaml code:

                    shared:ImageProvider.Provider="{x:Static common:ImageProviders.NonDefaultImageProvider}"
                    ImageSourceLarge="{Binding DesignThumbnail.ThumbnailStream128X168, Converter={phx:ImageSourceConverter}}"
                    ImageSourceSmall="{Binding DesignThumbnail.ThumbnailStream16X16, Converter={phx:ImageSourceConverter}}"
                    Label="{Binding DisplayNameDependingOnPatternManagement}"
                    ToolTip="{Binding Translation[RibbonSelectedSinglePatternTooltip]}"

Is there something I´m doing wrong or is there another way of doing it?

Comments (2)

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Patrick,

The attached ImageProvider.Provider property needs to be set on the ImageSource itself, not on a control.  I think that's the only change you need to make.  So you might need to put the code to set it in your custom ImageSourceConverter here.

Actipro Software Support

Posted 3 years ago by Patrick Neubauer

Thanks for your reply. It´s working now as intended.

The latest build of this product (v24.1.2) 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.