In a ResouceDictionary, we can keep our custom styles, DataTemplates, ControlTemplates, even custom definitions for Brush, Color, Background and a lot of other stuff. But, the important thing is that we have to assign a key to each of them since it is a Dictionary. Or perhaps, we can give names to the styles.
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.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Add->Existing item->Select the Resource file
You can use following line of code to include resource file.
By using key value we can access resource.
Use this function
this.FindResource("Key value")