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.”

Update:

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.

Advertisements

~ 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:

WordPress.com Logo

You are commenting using your WordPress.com 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: