Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Reference a ResourceDictionary in a Different Assembly

<Window    x:Class="WpfApplication1.Window1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title="Window1"    Height="200"    Width="200"   Background="{DynamicResource WindowBackgroundBrush}">   <Window.Resources>     <ResourceDictionary>       <ResourceDictionary.MergedDictionaries>         <ResourceDictionary Source="pack://application:,,,/ExternalResourceDictionary.xaml" />       </ResourceDictionary.MergedDictionaries>     </ResourceDictionary>   </Window.Resources> </Window>