Sponsored By
MindStick SurveyManager
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Author Post

Amresh Kushwaha


Total Post: 38
Member Since: 5/9/2011
Points: 220
ResourceDictionary
Posted On: 8/16/2011 10:45:41 AM
How to use ResourceDictionary of WPF,,When we use simple windows form and add only usercontrols of wpf
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
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
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 Form
Reason:    
 
Total Online Users: 7471
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2009 - 2013MindStick. All Rights Reserved.