MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

New Control: Tokenizing / Tags

Open BornToBeRoot opened this issue 2 years ago • 3 comments

Describe the feature

New control to add tokens / tags (See screenshot). Could be helpful for different scenarios. Mainly for tagging.

The items should be bound to a collection.

@punker76 what do you think?

Additional context

Something like this: https://stackoverflow.com/questions/29525410/wpf-control-for-tokenizing

image

Optional:

  • Configure the delimiter
  • Accept enter key?

BornToBeRoot avatar May 12 '23 23:05 BornToBeRoot

@BornToBeRoot maybe have a look at how MultiSelecitonComboBox works. It has almost everything needed to achieve such a control. However, this control has some really hard to solve issues (at least to be used everywhere and with many customizations). Mainly:

  • When to convert the text to an token?
  • How can a token be edited after it was changed?
  • How to handle LostFocus?
  • Do we need a way to validate tokens?

timunie avatar May 15 '23 07:05 timunie

I will have a look at the control. Is it only available from version 3?

BornToBeRoot avatar May 16 '23 21:05 BornToBeRoot

Yes, it's a new control for v3.0. There's a preview available if you want to try out.

timunie avatar May 17 '23 09:05 timunie