Wednesday, March 7, 2012

Add Reference to WPF Merged Resource Dictionary in Window.xaml

Good evening guys!
Here's how to add reference to WPF Merged Dictionary in Window.xaml.
<Window.Resources>  
   <ResourceDictionary>  
     <ResourceDictionary.MergedDictionaries>  
      <!--resource dictionary is placed in folder-->  
      <ResourceDictionary Source="/ResourceDictionaries/RoundedButton.xaml" />   
      <!--dictionary is inside WPF project-->  
      <!--<ResourceDictionary Source="RoundedButton.xaml" /> -->   
     </ResourceDictionary.MergedDictionaries>  
   </ResourceDictionary>      
</Window.Resources>  

0 comments:

Post a Comment