Svg.Skia
Svg.Skia copied to clipboard
Avalonia control change color
Hello, I'm using the Avalonia control to display buttons. Currently I switch between multiple SVGs with highlighted/disabled color. I want to add styling so I would need to dynamically change the color. Is there a way to do that?
I was wondering the same thing. I could not find a way to do it with this library, so instead I manually copied the path data from the SVG into an Avalonia Path object. Then you can set the Fill and Stroke.
Great suggestion. I can easily export the XAML path from Inkscape.
Please use https://github.com/wieslawsoltes/SvgToXaml