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

查看:23
本文介绍了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 自动完成文件夹文本框

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

还可以看看这个不错的 Reusable WPF Autocomplete TextBox,它是对我来说非常有用.

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

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

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