问题
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 WPF: AutoComplete TextBox, ...again, 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?
回答1:
I had the same problem. You probably still need to add a reference to System.Windows.Controls.DataVisualization.Toolkit. That fixed it for me.
回答2:
Try this:
- Within VS right click on the Toolbox
- Select "
Reset Toolbox
".
If that doesn't work:
- Stop Visual Studio
- Go to:
<drive>:\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\VisualStudio\<VS version>
- Delete the hidden files:
toolbox.tbd
toolbox_reset.tbd
toolboxIndex.tbd
toolboxIndex_reset.tbd
- Start Visual Studio
来源:https://stackoverflow.com/questions/2386010/unable-to-add-autocompletebox-to-toolbox-or-handcrafting-xaml