Binding to resource
Use Binding's
Source
property to bind resources.
Static resource
{Binding Source="{StaticResource resourceKey}"}
A markup extension, uses load-time resource for the key
Not suggested for forward reference of resources
Doesn't update when target resource changes for the key
Suggested when target resource can't change at runtime
Dynamic resource
{Binding Source="{DynamicResource resourceKey}"}
A markup extension, uses runtime resource for the key
Suggested for forward reference of resources
Updates when target resource changes for the key
Suggested when target resource can change at runtime