Load WPF styles or other Static Resources from an external file or assembly Load WPF styles or other Static Resources from an external file or assembly wpf wpf

Load WPF styles or other Static Resources from an external file or assembly


Referencing an external ResourceDictionary (XAML File):

<Application.Resources>    <ResourceDictionary Source="MyResources.xaml" /></Application.Resources>

Referencing an external ResourceDictionary (DLL):

<Application.Resources>    <ResourceDictionary Source="/MyExternalAssembly;component/MyResources.xaml" /></Application.Resources>