Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF input method for a 'tag list'

Tags:

c#

user-input

wpf

I'm looking for WPF component (if it exists) to input tags in a similar fashion to what StackOverflow.com provides when inputting tags for a question.

Tag input

Does such a component exist? If not, what would be the best approach? I was thinking about a textbox with a certain padding to reflect the position of existing tags, but it seems like a lot of work since it most likely requires custom measure/arrange implementations.

like image 665
Bas Avatar asked Nov 13 '22 06:11

Bas


1 Answers

I think a simple templated ItemsControl would do the trick with tag buttons in the ItemsTemplate, and a horizontal StackPanel as the ItemsContainer

like image 166
Dean Chalk Avatar answered Nov 15 '22 08:11

Dean Chalk