DrawingImages as Ressouces for buttons #17191
markusalbrecht-procam
started this conversation in
General
Replies: 1 comment
-
Hello! You can use your DrawingImage as a resource for multiple Images. For example, define it with a key, and use it according to the given key.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am looking for any sample how to use DrawingImages within a ressource file so we can reuse those in our menus.
We are currently using SVG Images as source but the problem is that those cannot be used with theming colors foreground/background therefor we need to swtich to DrawingImage.
The plan is to create a ressource file with all the icons e.g.: like we did in WPF:
Those can then be bound to the ImageSource of Buttons via the Key for example:
The problem is I did not find any explanation how this should look like in AvaloniaUI axaml ressources. Is anyone doing something already or having any simple sample how this can be approached ?
Beta Was this translation helpful? Give feedback.
All reactions