I am wanting to have a set of styles contained within a standalone dll that can be referenced from a number of different WOF classes to define common styles.
I have created the standalone dll and tried referencing it but am having problems.
Here is the code for the standalone dll:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style x:Key="myStyle" TargetType="Button"> <Setter Property="Background" Value="Orange" /> <Setter Property="FontStyle" Value="Italic" /> <Setter Property="Padding" Value="8,4" /> <Setter Property="Margin" Value="4" /> </Style> <!-- store here your styles --> </ResourceDictionary> Here is where Im trying to reference it:
<src:GX3ClientPlugin.Resources> <ResourceDictionary Source="pack://application:,,,/GX3StyleResources.dll;component/GX3StyleResources.xaml" /> </src:GX3ClientPlugin.Resources> When running I get the following exception:
Could not load file or assembly 'GX3StyleResources.dll, Culture=neutral' or one of its dependencies. The system cannot find the file specified.
Any Ideas?