Change color of svgImage at runtime #253
Replies: 5 comments
-
For monochrome yes, see the SvgIcon samples in WpfTestResourceSvg. |
Beta Was this translation helpful? Give feedback.
-
Thank you, one question regarding SvgIcon: In the samples you refer to, the source is set via svgc:SvgIcon.SvgSource <![CDATA[ Could I do the same and set the source of the SvgIcon to a svg file? |
Beta Was this translation helpful? Give feedback.
-
Yes, it supports both SvgSource and UriSource properties similar to other controls. |
Beta Was this translation helpful? Give feedback.
-
Thanks - sorry for the newbie question but how would the xaml def. be for UriSource to a local file using SvgIcon? |
Beta Was this translation helpful? Give feedback.
-
In the same file you will see controls using "Source", this is the same as "UriSource". The "Source" is maintained for backward compatibility. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Is it possible to change the color of an svg in svgImage at runtime in wpf?
Best,
Beta Was this translation helpful? Give feedback.
All reactions