views:

216

answers:

2

Hello, I'm trying to use the AutoCompleteBox control from the february release of WPFToolkit.

I install the toolkit using the .msi file, add the assembly reference, and only two new controls appears in my toolbox: Calendar and Datepicker. I then tried to handcraft the XAML as shown in http://stackoverflow.com/questions/2338690/wpf-autocomplete-textbox-again/2380365#2380365, but once again, the AutoCompleteBox is missing.

Also, since I've installed WPFToolkit, my toolbox has some strange behavior, like deleting all elements and not letting me add any new control.

Does anyone have had the same issues, and know how to solve them?

A: 

Try this:

Within VS, right click on the Toolbox and select "Reset Toolbox".

If that doesn't work:

  1. stop Visual Studio
  2. go to; <drive>:\Documents and Settings\\Local Settings\Application Data\Microsoft\VisualStudio\<VS version>
  3. delete the hidden files:
    • toolbox.tbd
    • toolbox_reset.tbd
    • toolboxIndex.tbd
    • toolboxIndex_reset.tbd
  4. start Visual Studio
Cheeso
Okay, I managed to get my old controls back in the toolbox, but still just Calendar and DatePicker show up.Also, these are the only ones from WPFToolkit present in the list displayed when I choose which elements I want in the toolbox.
Elhu
Are you looking in the right spot? I couldn't find it at first. The AutoCompleteBox is in the `DataVisualization` category. see the image here: http://stackoverflow.com/questions/2338690/wpf-autocomplete-textbox-again/2339036#2339036
Cheeso
Well ... despite having installed WPFToolit, I don't have a DataVisualization category in my toolbox. I only have Common, Controls, and General. (Translated from a french VS, so I hope the names are the same in english :/)
Elhu
A: 

I had the same problem. You probably still need to add a reference to System.Windows.Controls.DataVisualization.Toolkit. That fixed it for me.

Peter