Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] how to fill svg with any color when using SvgImageSource in xaml? #375

Closed
HppZ opened this issue May 21, 2018 — with docs.microsoft.com · 2 comments
Closed
Assignees
Labels
area-xaml XAML-related feedback. eng-triaged Issue has been triaged by engineering team responsible.

Comments

Copy link

HppZ commented May 21, 2018

I don't want to have two same shaped svg files with different colors.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@stefangavrilasengage
Copy link

Also interested in an answer.

@jevansaks jevansaks added area-xaml XAML-related feedback. eng-triaged Issue has been triaged by engineering team responsible. labels Mar 29, 2019
@jesbis
Copy link
Contributor

jesbis commented Mar 29, 2019

SvgImageSource doesn't support dynamically changing colors. You would need to create different files, or you could potentially load the file into an in-memory stream and update its contents before loading it into an SvgImageSource.

This seems like a reasonable idea for a new feature: please feel free to open a new feature suggestion for the Xaml platform in the Windows UI Library repo:
https://github.com/microsoft/microsoft-ui-xaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML-related feedback. eng-triaged Issue has been triaged by engineering team responsible.
Projects
None yet
Development

No branches or pull requests

5 participants