How to Convert SVG to XAML with Dynamic Color Binding Using SharpVectors API #281
Unanswered
ErzaScarlett6797
asked this question in
Q&A
Replies: 1 comment 2 replies
-
See if this meets your needs SvgIcon Control <svgc:SvgIcon Fill="{Binding Path=FillBrush, FallbackValue=Magenta}"> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to convert SVG files to XAML format and need to ensure the color values are not hardcoded but can adapt to the theme of the parent control. Specifically, I want to update the color value to use a binding like "Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType=Control}" to dynamically change according to the theme. Is there a way to achieve this color binding during the conversion process using the SharpVectors API? Any insights or examples on how to implement this would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions