What is the Choice between StaticResource and DynamicResource in WPF?

 Posted by Shantanupatel on 3/6/2012 | Category: WPF Interview questions | Views: 3222 | Points: 40

* StaticResource requires less CPU during runtime, so it is faster.
* StaticResource are created when the application loads. So making everything as StaticResource means slowing down the Application Load process.
* When the resources are unknown during compilation, you can use DynamicResource.
* DynamicResource are used when user interaction changes the look and feel of an object.

Source: Interview | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response