Wednesday, March 7, 2012

Add Reference to WPF Merged Resource Dictionary in Window.xaml

1:  <Window.Resources>  
2:   <ResourceDictionary>  
3:     <ResourceDictionary.MergedDictionaries>  
4:      <!--resource dictionary is placed in folder-->  
5:      <ResourceDictionary Source="/ResourceDictionaries/RoundedButton.xaml" />   
6:      <!--dictionary is inside WPF project-->  
7:      <!--<ResourceDictionary Source="RoundedButton.xaml" /> -->   
8:     </ResourceDictionary.MergedDictionaries>  
9:   </ResourceDictionary>      
10:  </Window.Resources>  

0 comments:

Post a Comment