What are the considerations in choosing the location to store a - ProProfs Discuss
Advertisement

What are the considerations in choosing the location to store a resource?



Asked by Lawson, Last updated: Apr 12, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Sep 09, 2016

For resources to be accessed by all elements in an application, store resources in the application. resources collection. the window.resources collection makes resources available only to elements in that window, but that is typically sufficient for most purposes. if you need to share individual resources over multiple projects in a solution, your best choice is to store your resources in a resource dictionary that can be shared among different projects.readability is important for enabling maintenance of your code by other developers. the best choice for readability is to store resources in the window.resources collection because developers can then read your code in a single file rather than having to refer to other code files.if making your resources reusable is important the ideal method for storing them is to use a resource dictionary. this allows you to reuse resources among different projects and extract those resources easily for use in other solutions as well.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.