The other XAML file should be a resource dictionary. You merge it into the current file using the MergedDictionaries property of the current ResourceDictionary. See Combined Resource Dictionaries on MSDN. Their example:
<Page.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="myresourcedictionary.xaml"/> <ResourceDictionary Source="myresourcedictionary2.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Page.Resources>
Then, inside this page object, you can refer to static resources defined in myresourcedictionary.xaml or in myresourcedictionary2.xaml .
Quartermeister
source share