This project has moved. For the latest updates, please go here.

Dynamically add Extended WPF Toolkit control to WPF UserControl

Jan 19, 2013 at 8:04 PM
Edited Jan 19, 2013 at 8:04 PM

I would like to add a MaskedTextBox control to my user control, i.e.:

MaskedTextBox tbItem = new MaskedTextBox();                       

m_wPOSUIWindow.pnlEntry.Children.Clear();                       

m_wPOSUIWindow.pnlEntry.Children.Add(tbItem);

Unfortunately, whenever I attempt this I get the error:

Could not load file or assembly 'WPFToolkit.Extended, Version=1.8.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4' or one of its dependencies. The system cannot find the file specified.

I have added a reference and using statement in all classes involved.  

Any ideas?