How to define and reuse resources in WP7 - by Windows Phone Geek
In this quick tip I am going to give some examples of how to define/access/use resources either in XMAL or C# in Windows Phone 7 application.
How to define and access a reusable resource?
You can define any resource: style, brush, color, etc. in the Resources section of every FrameworkElement. In XAML, you can establish resource items as child object elements of a FrameworkElement.Resources property element, through XAML implicit collection syntax. Note that you have to set any Key so that you will be able to acces the resource by its key.
Read More from: Original Source
Post Contributed by: Kunal Chowdhury
Kunal is the Site Admin and Contributor of Silverlight-Zone. He is a Software Engineer, Microsoft Silverlight MVP, Code Project Mentor and a Code Project MVP. He is also an active Author in SilverlightShow.net and a speaker in various community events. He works on Microsoft Platform and very passionate about Silverlight technology. He started his career in 2007 and achieved various awards during his professional life.
He shares his findings in his personal blog: http://www.kunal-chowdhury.com and he also tweets at: @kunal2383.