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

Hi there,

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

<ribbon:PopupButton
                    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]}"
                    VariantSize="Large"/>

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
Avatar

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
Avatar

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

The latest build of this product (v24.1.2) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.