自动完成文本框在WPF [英] AutoComplete TextBox in WPF

查看:262
本文介绍了自动完成文本框在WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使一个WPF自动完成文本?

Is it possible to make a textbox autocomplete in WPF?

我发现在使用组合框的样本和三角形是通过编辑风格模板移除。

I found a sample where a combo box is used and the triangle is removed by editing the style template.

有没有更好的解决办法?

Is there a better solution?

推荐答案

您可以找到一个在 WPF工具包,它也可通过的NuGet。

You can find one in the WPF Toolkit, which is also available via NuGet.

本文演示如何创建一个文本框,可以自动根据提示输入在运行时的项目,在这种情况下,磁盘驱动器的文件夹。
WPF自动完成文件夹的TextBox

This article demos how to create a textbox which can auto-suggest items at runtime based on input, in this case, disk drive folders. WPF AutoComplete Folder TextBox

另外看看这个漂亮可重复使用WPF自动完成文本框,这对我来说非常实用。

Also take a look at this nice Reusable WPF Autocomplete TextBox, it was for me very usable.

这篇关于自动完成文本框在WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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