Unable to add AutoCompleteBox to toolbox or handcrafting XAML
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?
I had the same problem. You probably still need to add a reference to System.Windows.Controls.DataVisualization.Toolkit. That fixed it for me.
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
精彩评论