Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
Home
|
Product
|
Services
|
About Us
|
Interview
|
DeveloperSection
|
Submit an Article
|
Submit Blog
Report Abuse Form
Reason:
Home
>>
.Net
>>
WPF(Windows Presentation Foundation)/XAML
>>
ResourceDictionary
Author
Post
Amresh Kushwaha
Total Post:
38
Member Since:
5/9/2011
Points:
220
ResourceDictionary
Posted On:
8/16/2011 10:45:41 AM
Report Abuse
How to use ResourceDictionary of WPF,,When we use simple windows form and add only usercontrols of wpf
Reply
Author
Post
John Smith
Total Post:
51
Member Since:
9/27/2010
Points:
332
Re: ResourceDictionary
Posted On:
8/16/2011 12:46:12 PM
Report Abuse
Right Click the project in the Resource folder:
Add->Existing item->Select the Resource file
You can use following line of code to include resource file.
< Window.Resources >
< ResourceDictionary >
< ResourceDictionary.MergedDictionaries >
< ResourceDictionary Source="sample.xaml" / >
< /ResourceDictionary.MergedDictionaries >
< /ResourceDictionary >
</Window.Resources >
By using key value we can access resource.
Use this function
this.FindResource("Key value")
Modified On:
8/16/2011 12:48:22 PM
Reply
Author
Post
Chris S
Total Post:
16
Member Since:
9/29/2010
Points:
93
Re: ResourceDictionary
Posted On:
8/16/2011 12:51:17 PM
Report Abuse
Check this link
http://msdn.microsoft.com/en-us/library/aa350178.aspx
Reply
Report Abuse Form
Reason:
Total Online Users:
7471
Advertisement
Advertise with Us
Copyright ©
2009 - 2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us