I just want to do the following in .net 4.0 wpf windows application.
var source = new AutoCompleteStringCollection();
source.AddRange(Contract_Extracter.GlobalVariables.customerList);
textBoxClientID.AutoCompleteCustomSource = source;
textBoxClientID.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
textBoxClientID.AutoCompleteSource = AutoCompleteSource.CustomSource;
and I'm getting following errors,
The type or namespace name AutoCompleteStringCollection could not be found (are you missing a using directive or an assembly reference?)
System.Windows.Controls.TextBox does not contain a definition for AutoCompleteCustomSource and no extension method AutoCompleteCustomSource accepting a first argument of type 'System.Windows.Controls.TextBox' could be found (are you missing a using directive or an assembly reference?)
3.The name AutoCompleteSource does not exist in the current context
I have already added using System.Windows and the reference. What is wrong here? what are the assemblies should I refer?
Thanks