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

[Enhancement] DynamicResource color is not dynamic changed when cellbase IconSource is FontImageSource #186

Open
liuww06 opened this issue Jan 12, 2022 · 0 comments

Comments

@liuww06
Copy link

liuww06 commented Jan 12, 2022

Description

I use FontImageSource as IconSource in cellbase .I want use dynamic color by DynamicResource ,but the result is not expected:color is not changed .Code is below:
<sv:CommandCell > <sv:CommandCell.IconSource> <FontImageSource FontFamily="{DynamicResource IconFontFamily}" Glyph="{x:Static fontIcons:FontIcons.Avatar}" Color="{DynamicResource AvatarColor}"/> </sv:CommandCell.IconSource> </sv:CommandCell>

I do the same work in ImageButton , and the color is changed as expeced.
<ImageButton> <ImageButton.Source> <FontImageSource FontFamily="{DynamicResource IconFontFamily}" Glyph="{x:Static fontIcons:FontIcons.Avatar}" Color="{DynamicResource AvatarColor}"/> </ImageButton.Source> </ImageButton>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant