本文介绍了WPF 文本框中的标签编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现一个允许我编辑标签的自定义文本框.Hotmail 的To"TextBox 是我能想到的最好的例子:
I want to implement a custom TextBox that will allow me to edit tags. Hotmail's "To" TextBox is the best example I can think of:
Facebook 的To"也实现了相同的概念:
Also Facebook's "To" implements the same concept:
哦,是的,StackOverflow 也这样做来标记问题:)
Oh yeah, and StackOverflow does it too to tag a question :)
有没有人有在 WPF 中构建类似东西的经验?我应该做的第一步是什么?
Does anyone have some experience in building something like that in WPF? What would be the first steps that I should make?
推荐答案
我相信这个 Tokenizing 控件可以满足您的大部分需求:
I believe this Tokenizing control does most of what you're looking for:
http://blog.pixelingene.com/2010/10/tokenizing-control-convert-text-to-tokens/
这篇关于WPF 文本框中的标签编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!