views:

26

answers:

0

Hi i want to make one WPF control library applcaiton. In that i will load images depends on the text. So i used code like this

if (string.Compare(AlStatus,"HH")==0) 
  src1 = @"pack://application:,,,/WpfApp;component/data/HH.bmp";
 else
   src1 = @"pack://application:,,,/WpfApp;component/data/Normal.bmp";
.
.
Img1.Source = new ImageSourceConverter().ConvertFromString(src1) as ImageSource;

It works fine when i build this as windows applcaiton. But when i convert it to control library and loaded in VC++ application,it shows error Could not load file or assembly 'WpfApp, Culture=neutral' or one of its dependencies. The system cannot find the file specified.