What is the difference between dynamicresource and staticresource?
Answer Posted / Chandra Shekhar Singh
Both staticresource and dynamicresource are used to reference a resource in XAML. However, the main difference lies in their lifetime: 1) StaticResource retrieves the resource when it encounters it during compile-time and uses the same instance throughout the application unless the resource is changed. 2) DynamicResource retrieves the resource at run-time whenever the binding expression is evaluated, which allows the resource to change without affecting other usages of the same resource.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category