AutoCompleteBox not found in wpf toolkit using visual studio 2012 - wpf

This is really a wanted feature, AutoCompleteBox (not AutoCompleteComboBox apparently).
However, visual studio 2012 cannot find the AutoCompleteBox control. But I have not tried in earlier version of vs, so it may not be a version matter.
I installed wpf toolkit, added those extensions to my WPF project:
WPF Toolkit
WPF Toolkit Design
WPF Toolkit Input Design
WPF Toolkit Input Visual Studio Design
WPF Toolkit Layout
WPF Toolkit Layout Visual Studio Design
WPF Toolkit Visual Studio Design.
Looks almost like virii to me. Every permutation of words are used...
Well well in my WPF project, I added
xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
to a window and tried to also add a auto complete box like this:
<toolkit:AutoCompleteBox />
but AutoCompleteBox does not seem to exist, the first component that is listed when I have typed
<toolkit:
is ButtonBaseBehavior.

Not all the toolkit controls are included in the "main" namepace.
Let me explain it how are the toolkit dlls are built up:
You can also install the WPF toolkit through NuGet:
PM> Install-Package WPFToolkit
It will add three dlls to your project:
WPFToolkit.dll this contains the core/stable controls of toolkit which can be found in the xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
System.Windows.Controls.Input.Toolkit.dll this dll contains the preview controls like AutoCompleteBox and Rating
System.Windows.Controls.Layout.Toolkit.dll this dll contains the preview layout controls like the Accordion
The preview controlls are not included in the main xmls namespace so you need to use a the namespace form the corresponding preview dll:
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
<controls:AutoCompleteBox />

Add a reference to (Included in WPFToolkit):
System.Windows.Controls.Input.Toolkit.dll
and then in your xaml at the top:
xmlns:System_Windows_Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
and for using it anywhere in your code just like this:
<System_Windows_Controls:AutoCompleteBox />

Related

VS How To Enable XAML Visual Editor for Xaml files (outside of WPF project)?

Visual Studio Community 2015. Xamarin Test Project.
I have a project which have some layouts - Layout.xaml
It shows the designer - it looks like an XML editor of some sort - but what I am looking for is the Visual Xaml Designer - where you see the results of what you do.
If you open any WPF project you will and doulbe click any of its default Xaml files - you will see a nice looking Xaml Visual and Code Editor combined. How can I enable the same within my Xamarin project?
Why Xaml that is in WPF project shows that nice Visual Editor and Xamarin Project does not? Is there a way to bind it?
It has to depend on the project type I assume.
PS: I have a droid project and the iOS and a portable library where I have those XAML files.
If you have any more questions - please ask.
Update
I tried installing Microsoft.Xaml (through Nuget Package manager) - still no luck
Update 2
I create a basic WPF project and look at its references. I matched it identically with my project - but still no luck
Update 3
WPF Project has different properties (which makes sense)
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
And my XAML files have these
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Even though I knew manipulating those would not launch Xaml Visual Designer - still tried that with no luck.
What loads this XAML Visual Designer for the WPF project????
This is the answer - there is a Xamarin.Forms Previewer
Use the View > Other Windows > Xamarin.Forms Previewer menu in Visual Studio to open the preview window. Use the Window > New Vertical Tab Group menu to position it side-by-side.
There is no direct possibility for a preview of your XAML-views, but you can use Gorilla Player(http://gorillaplayer.com/) a software which allows a such function

VisualStateManager is not supported in a WPF project

I'm using <VisualStateManager> in my xaml and it returns "VisualStateManger is not supported in a WPF project". I wonder that is it I need to install WPF Toolkit to enable it? Or I need to put a specific xlmns for xaml? By the way, I'm using visual studio 2013 and .NET Framework 4.5.
You can refer to the below link:
http://www.interact-sw.co.uk/iangblog/2008/06/10/visual-state
According to the link, VisualStateManager class isn’t in the Silverlight Xaml namespace, so we’ve had to qualify it with a namespace prefix:
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"

WPF Toolkit doesn't get displayed in the toolbox

I installed the wpftoolkit.msi and added a reference to it, but it doesn't get dipslayed in the toolbox, is there anything else that needs to be done? I followed the instructions from the code plex site, I can access some of the controls from code, only a few, I added WPFToolkit as a reference, does any other reference need to be added for the chart controls and so that they can be accessed from the toolbox?
EDIT: I added all dlls in the folder and still cannot access the chart control.
Answer: I provided an answer bellow you neeed to include a different namespace for the charts the default one from the codeplex site doesn't include all controls.
I believe this is the answer if you want to add the charting controls to your toolbox.
If you just add a reference to what the codeplex site says you won't get all controls.
using Microsoft.Windows.Controls doesn't work you need to include the reference name, if you click on properties for the reference name you can copy name, for charting it is: System.Windows.Controls.DataVisualization.Toolkit
For the toolbox:
Go to your toolbox, right click create a new tab. In the new tab right click choose items add all the controls from the System.Windows.Controls.DataVisualization.Toolkit namespace. You should have all of them in the toolbox.
Here it is http://wpf.codeplex.com/releases/view/40535
Installation and Usage Instructions
Please note: The WPF Toolkit is dependent on .NET Framework 3.5 SP1. You must install .NET Framework 3.5 SP1 in order to use any features in the Toolkit.
Instructions for using the WPF Toolkit binaries:
Install .NET Framework 3.5 SP1
If you have a previous version of WPF Toolkit installed, uninstall it through the Remove Programs dialog on the Control Panel (look for "WPF Toolkit October 2008" or "WPF Toolkit January 2009" or "WPF Toolkit March 2009" or "WPF Toolkit June 2009")
Download the WPFToolkit_Binaries or WPFToolkit_BinariesAndSource
Run the WPFToolkit.msi to install the WPFToolkit.dll and WPF Toolkit design time binaries to your Program Files folder
Reference the binaries in your project:
Reference WPFToolkit.dll in your project
Add a using statement ("using Microsoft.Windows.Controls;") to the top of .cs files
Add a new xmlns (for example, xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit") to the top of XAML files
Remember to use the namespace prefix (in the above example, ) in the body of your XAML

Silverlight Toolkit - Where is the AutoCompleteBox?

I just added the Silverlight 4 toolkit to my project via NuGet. (NuGet package "Silverlight Toolkit - All")
I can't find the AutoCompleteBox anywhere in the dlls added to my project. Where is it?
Things I've tried:
I cracked open all the dlls it added
to my project, and I don't see
AutoCompleteBox in any of them.
Looking at the Silverlight Toolkit
discussions, I don't see anyone mentioning its removal.
Looking at the Silverlight Toolkit
changeset history, I don't see it
being mentioned as removed.
I browsed the source, and I do see AutoCompleteBox in there, but it get compiled into a dll System.Windows.Controls.Input.dll, but when I add the project in via NuGet, I don't get that dll, instead I get System.Windows.Controls.Input.Toolkit.dll
Where is the AutoCompleteBox in the Silverlight Toolkit?
Its not in the Silveright Toolkit any more. As of Silverlight 4 it moved to the SDK. You should be able to drag the AutoCompleteBox from you toolbar to the designer and VS will add the reference to System.Windows.Controls.Input.dll for you.

AutoCompleteBox - WPF Toolkit

I want to use the AutoCompleteBox in my WPF application but i cannot find it in visual studio. I have VS 2010 ultimate. I just downloaded and installed WPFToolkit.msi and ran it. When i open VS i cannot find the control. Where can i find it? Do i have to reference it somehow? I also have the .dll but i dont know if i need to put that somewhere? Thank you.
The AutoComplete textbox is a componenet which is in the Preview Quality Band in the WPF Toolkit .So it is not available is visualstudio 2010.You need to download and install the Feb 2010 release of the WpfToolkit and follow the instructions from the below SO post
WPF: AutoComplete TextBox, ...again

Resources