O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Static Versus Dynamic Resources

WPF provides two ways to access a logical resource:

Image Statically with StaticResource, meaning that the resource is applied only once (the first time it’s needed)

Image Dynamically with DynamicResource, meaning that the resource is reapplied every time it changes

The DynamicResource markup extension implements the ability to walk the logical tree just like StaticResource does, so DynamicResource can often be used wherever StaticResource is used to get the same effect. The main difference between StaticResource and DynamicResource ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required