Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

DynamicResource inside of ChangePropertyAction doesn't work #51

Open
maxkatz6 opened this issue Oct 8, 2020 · 8 comments
Open

DynamicResource inside of ChangePropertyAction doesn't work #51

maxkatz6 opened this issue Oct 8, 2020 · 8 comments

Comments

@maxkatz6
Copy link
Member

maxkatz6 commented Oct 8, 2020

Xaml:

<ia:DataTriggerBehavior Binding="{Binding Condition}"
                        ComparisonCondition="Equal"
                        Value="False">
    <ia:ChangePropertyAction TargetObject="{Binding #PosterImageBackground}"
                            PropertyName="Background"
                            Value="{DynamicResource SystemControlBackgroundBaseMediumBrush}" />
</ia:DataTriggerBehavior>

When I replace DynamicResource with StaticResource everything works.

@Fruchtzwerg94
Copy link

I am facing and confirm the same issue with version 0.10.12
Is the reason of the bug already found? Any related issues or fixes available?

@Nanoxide
Copy link

Same issue with version 0.10.16, any info ?

@SuperJMN
Copy link

Same issue. Has anyone taken a look to see if it's trivial to solve? I don't know much about Dynamic Resources and how they're different from Static ones at framework level.

@fgsfds
Copy link

fgsfds commented Aug 25, 2023

Still exists in 11.0.2

@harayuu9
Copy link

Still exists in 11.0.10.4 ...

@maxkatz6
Copy link
Member Author

@fgsfds @harayuu9 it will exist until somebody fixes it. And this repository is open for contribution.
There is no need to bump this thread otherwise.

@izaksuilov
Copy link

I have suggested this PR with workaround

@cyraid
Copy link

cyraid commented Aug 22, 2024

@maxkatz6 I don't mean to "bump", but I believe @izaksuilov has a few PR's that seem like they would fix some of the issues. Any reason they haven't been looked at yet?

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

No branches or pull requests

9 participants