WPF - Usare più file di risorse

Può capitare di volere fare riferimento a più file di risorse all'interno di una Window o di uno UserControl e farli magari convivere con le risorse definite localmente. La classe ResourceDictionary ci viene incontro con la proprietà MergedDictionary.

<Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="../../MainResources.xaml" /> <ResourceDictionary Source="../../Styles.xaml" /> </ResourceDictionary.MergedDictionaries> <DataTemplate x:Key="MyTemplate"> .... </DataTemplate> </ResourceDictionary> </Window.Resources>

In questo modo possiamo gestire le nostre Resources come una ResourceDictionary che sarà il risultato dell'unione delle nostre risorse locali e le ResourceDictionary definite in file esterni.

 

Matteo

 

 

Print | posted @ mercoledì 11 marzo 2009 14:49

Comments on this entry:

Gravatar # re: WPF - Usare più file di risorse
by taoruankeji at 19/08/2010 09:22

PDF to TIFF Converter is a professional PDF to images program which let you convert PDF to TIFF and lots of image formats with high quality, such as JPEG, PNG, GIF, BMP, PCX, TGA. As to convert PDF to TIFF, you can freely set output encoder, including lossless, RLE, FAX G3, etc. Using this PDF to TIFF Converter, you alos can choose colorful, grey and white as output color. Reset resolution is applicable as well.
PDF to XLS Converter
PDF to EPUB Converter
Convert PDF to GIF
Gravatar # re: WPF - Usare più file di risorse
by dissertation writing service at 24/04/2012 15:11

There are the quantities buy dissertation or custom thesis but your very hot fact just about this good post. Moreover, to receive more knowledge you would purchase the best dissertation.
Gravatar # re: WPF - Usare più file di risorse
by essay writing example at 28/06/2012 17:22

So in order to save my free time, I buy essays online done with 100% accuracy.
Gravatar # re: WPF - Usare più file di risorse
by dissertation service at 10/07/2012 20:08

It’s a professional data close to this good topic. Guys would like to have such kind of perfect writing skills. But they should purchase the dissertation chapter proposed by some distinguished buy thesis (greatdissertation.com) service.
Gravatar # re: WPF - Usare più file di risorse
by dissertation writing at 13/07/2012 11:14

Here is plenty motivation in the world to get each and every one through a dissertation help supreme-thesis.com. You have to bank on unmixed steam of habit.
Gravatar # re: WPF - Usare più file di risorse
by dissertation writing service at 30/08/2012 10:09

Students spend a lot of efforts to reach a peak of their career. I can state that it's easier to order dissertation research at thesis writing service (superdissertations.com) and sit relaxed. I opine, it would be great solution.
Gravatar # re: WPF - Usare più file di risorse
by custom writings service at 02/09/2012 17:40

Owing to the active lifestyle the youths would rather buy an essay online than produce their college tasks on their own. Try this home page best-writing-service.com and I promise that you receive immediate help with custom writing UK.
Gravatar # re: WPF - Usare più file di risorse
by plagiarism checker at 25/07/2013 17:27

That is perfect that men created plagiarism detection companies. We should know that is bad to get someone's thoughts.
Gravatar # re: WPF - Usare più file di risorse
by Custom-Writing.org rewiew at 28/07/2013 04:08

Guys you did a favor for the all amount of clients who are hunting for reliable online paper writing services. I have never seen such complete custom essay writing services reviews "best-writing-services.com" than ones offered on your on the home page of your online resource.
Comments have been closed on this topic.