❔ How to define a button style for setting content as image?
I'm not sure if this is a bug or a quirk with setting content on button (or I'm just not doing things correctly). What I'm trying to do is have a set of button styles for commonly used buttons in a plugin I'm creating (it's not an app, hence the use of pack uri's). What i have is:
In my Styles Resource Dictionary i have the following (the IconButton Style, just sets background and border values)
The behaviour I see is that the content is only set for the last button. This occurs no matter how many or if the buttons exist in different parents, the last one is the only one ever to have any content (i.e. image). See attached image.
Can anyone help?
When i set the content manually it works fine, but I have to repeat the uri which is painful....
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
C
C#
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.