Static Resources V.S. Dynamic Resources

Here you can find some quite useful tips for WPF performance. The thing that drew my most attention was the raw comparison between static and dynamic resources. I quoted it as following:

“Static Resources are significantly less performance heavy that Dynamic Resources, since a Static Resource is loaded at compile time and the Dynamic Resources is loaded at run time. Additionally, WPF will render the page in its entirety when you change any resource for that page. Yikes.”


Don’t use StaticResource in a data/control template, because it will result in the error of “resource can not be found” even though it can be found at running time. Instead, choose DynamicResource. This is very important to keep your project blendable.


~ by Martin on August 16, 2007.

One Response to “Static Resources V.S. Dynamic Resources”

  1. That link doesn’t work.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: