ARTICLE

Auto Complete Box in WPF Toolkit

Posted by Diptimaya Patra Articles | WPF March 04, 2010
In this article we will see how to use Auto Complete Box in WPF Toolkit.
Reader Level:

Introduction

As you know WPF Toolkit has the recent version in February 2010, it has some controls added in Preview Brand. One of them is AutoCompleteBox. In this article we will see how to use it.

Creating WPF Application Project

Fire up Visual Studio 2008 and Create a WPF Application and name the project as AutoCompleteBoxInWPFToolkitSample.

AutoCompleteFig1.gif

Now we will add the AutoCompleteBox to our application. You can add it two ways, as you have recently uninstalled previous version of Toolkit and installed the new version, there will be occurrences where VisualStudio will through you error like the component doesn't exist.

So you need to add the Namespace "System.Windows.Controls.Input.Toolkit"

AutoCompleteFig2.gif

You can add it easily in Expression Blend as the following figure displays.

AutoCompleteFig3.gif

Now we will have some sample data to bind to the AutoCompleteBox.

AutoCompleteFig4.gif

That's it. Run the application and type in AutoCompleteBox. You will have the suggested list in the drop down.

AutoCompleteFig5.gif

And more importantly the fade in and fade out effect is added to the AutoCompleteBox.

Hope this article helps.

Login to add your contents and source code to this article
Article Extensions
Contents added by mamd mamad on May 27, 2012
post comment
     

Siempre tan bueno!

Posted by cristian rojas Sep 11, 2012

Siempre tan bueno!

Posted by cristian rojas Sep 11, 2012

Very good Tutorial

Posted by imran khlil Aug 15, 2012

Hi,I want to change the shape of a existing popup in Autocompletebox using expression blend. Can you help me in this.Thanks i advance.

Posted by chinni chinni Jul 16, 2012

Hi,

I was trying to implement an on-screen keyboard in WPF where I use buttons to send keys inside the textbox. My problem is that your AutoCompleteBox control keeps on losing focus.

Is there a workaround?

Posted by Mervha Nifflemhell Nov 09, 2010
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts