Closed hamidasadi-git closed 6 months ago
Also, I have another problem when trying to use a larger button. Even after using the code provided in the previous message, I still see the button like this.
To get resources (images) working all the time you should use the pack
syntax, as you would when using vanilla WPF.
Just using a path, without the pack
syntax, won't use the embedded resource icon when used on a Image
.
It only works for controls from Fluent.Ribbon because there is a special converter that takes care of transforming it.
~You can force a different icon size by setting RibbonProperties.IconSize
to Custom
.~
Just noticed this won't work as there is currently no way to also set CustomSize
on the used IconPresenter
...
Thank you for your help.
Hi, I'm new to Fluent.Ribbon. I am trying to use an icon from the Resources folder. I created a folder named "resources" and added some PNG files. After selecting them and changing the build action to "Resources," I noticed that at runtime, the icon displays properly, but at design time, I see a red circle with an "x" on it. The initial code looks like this:
Afterward, I used a trick to fix this issue with the following code. However, I would like to know if it's possible to use the initial code or if there's a design-time bug or etc.?
Environment