当我们从键盘输入一些字母时,如何让Combobox项目自动滚动 [英] How to get Combobox items auto scroll when we type some letters from Keyboard

查看:83
本文介绍了当我们从键盘输入一些字母时,如何让Combobox项目自动滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

           我正在使用Microsoft Silverlight 4.0和Microsoft  .Net Framework 4.0。我试图看看在Silverlight 4应用程序中,当我们输入KeyBoard中的任何字母时,如果有一个名为"Mumbai"的项目,这个System.windows.controls.combobox将支持在下拉列表中显示选项
的功能。 ;然后,如果我们输入键盘"妈妈",它应该向用户显示建议的选项作为孟买,就像我们在许多网站上看到的那样下拉菜单,但是这个
在这里不起作用 。

           I am working on Microsoft Silverlight 4.0 and  Microsoft  .Net Framework 4.0. I was trying to see if in Silverlight 4 application this System.windows.controls.combobox will support feature to show options in drop-down list when we type any letters from KeyBoard like if there is an item called "Mumbai" then if we type in Keyboard "Mum" it should display proposed option as Mumbai to user like in many websites we see drop-downs  but this doesn't work here  .

                                   你能告诉我如何实现这个功能吗。在Silverlight中是否有办法?

                                    Could you please let me know how it could be possible to implement this functionality .Is there a way in Silverlight?

在此先感谢!!

Thanks in Advance!!

Mayank Kashyap GoldCRM Consulting,Hyderabad

Mayank Kashyap GoldCRM Consulting,Hyderabad

推荐答案

Mayank Kashyap,

Hi Mayank Kashyap,

对于延迟回复感到抱歉。

Sorry for the delay response.

根据你的描述,你想要实现一个自动完成组合框,它可以自动过滤组合框控件中的项目。在Silverlight 4中,您需要先安装Silverlight 4 SDK,然后使用AutoCompleteBox控件。当您在文本框中键入内容时,它将在项目源中查找项目

According to your description, you want to implement a autocomplete combobox which could auto filter the items in combobox control. In Silverlight 4, you need to install Silverlight 4 SDK first and then use AutoCompleteBox control. It will look for the items in its item source when you type something in textbox.

以下文章介绍如何在Silverlight 4应用程序中使用此控件。希望对您有所帮助。

Following article introduce how to use this control in Silverlight 4 application. Hope that can help you.

http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/autocompletebox-in-silverlight-4-0/

最好的问候,

Weiwei


这篇关于当我们从键盘输入一些字母时,如何让Combobox项目自动滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆