DynamicResource is a XAML mechanism allowing the resources to be resolved during application runtime. It also allows changing the resources in such way, that each user of these resources will be notified and allowed to react accordingly to the change.
Questions tagged [dynamicresource]
134 questions
3
votes
1 answer
Is there a way to make a DynamicResource be dynamic for a Freezable in a ResourceDictionary?
I have this in Brushes.xaml:

Johan Larsson
- 17,112
- 9
- 74
- 88
3
votes
1 answer
How to break TextBlock's Text by DynamicResource in WPF
here, I am have a Resource in Page
Hello
The world
I want to localize my application by using DynamicResource, therefore, the Text property of my TextBlock is…

RambleInX
- 143
- 11
3
votes
1 answer
How are DynamicResources built and their use in contextmenus
Are dynamic resources truly dynamic? If I define a DynamicResource, I realise that an expression is created (where?) that is not translated into a resource until runtime, however, What I do not understans is whether this dynamicresouce, once built,…

miguel
- 2,961
- 4
- 26
- 34
3
votes
3 answers
How to make a WPF resource be recalculated when a trigger's run?
In short: I've got a Style. It uses TemplateBinding a fair bit to make it parametrized instead of repeating myself over and over again. However, when a trigger for that style gets used and a resource gets used in a setter in that trigger, it just…

It'sNotALie.
- 22,289
- 12
- 68
- 103
3
votes
1 answer
ComponentResourceKey as DynamicResource problem
I'm seeing some unexpected behavior using ComponentResourceKey. The problem came up because I was using names used in the SystemColors class.
Consider the following code:
First I expose a ComponentResourceKey in a as a static property:
public enum…

CtzKane
- 61
- 5
3
votes
3 answers
DynamicResource binding to Color not working
I have a style being created in the xaml for my window which contains bindings to a DynamicResource: