Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between dynamicresource and staticresource?



What is the difference between dynamicresource and staticresource?..

Answer / 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

More WPF Interview Questions

What are important features wpf?

1 Answers  


Does wpf use directx?

1 Answers  


How you close a ToolTip that is currently showing in WPF?

1 Answers   Tech Mahindra,


Explain wpf relative binding/ relative resource?

1 Answers  


What is the importance of inotifycollectionchanged in wpf?

1 Answers  


What is wpf and silverlight?

1 Answers  


How to create setup file in visual studio 2017 for wpf application?

1 Answers  


How many types of Binding modes is supported in WPF?

1 Answers  


How many type of templates are available in wpf?

1 Answers  


Describe the core elements of WPF architecture?

1 Answers  


What is wpf and xaml?

1 Answers  


What is wpf used for?

1 Answers  


Categories