-
Notifications
You must be signed in to change notification settings - Fork 1.4k
TokenizingTextBox on steriods #4946
minesworld
started this conversation in
Ideas
-
Within the source in AddTokenAsync the case is handled that the AutoSuggestBox is not the last item.
But the UI does not to allow that case.
To make the TokenizingTextBox fit for all thinkable usecases:
- declare an Interface for the Tokens, such as
IToken - in that have a
CanBeAutoSuggestBoxgetter - have a method in the
TokenizingTextBoxto activate the conversion from displaying an Item implementing theITokeninterface andCanBeAutoSuggestBoxis true to the currentAutoSuggestBox. Such asActivateAutoSuggestBoxForItem(IToken item) - the programmer can then implement a TemplateChooser (if not possibe to use one yet, has to implemented too) which shows items which
CanBeAutoSuggestBoxas a TextBlock without being inside a buton - clicking on such an item the programmer can call the
ActivateAutoSuggestBoxForItemform within theItemClickevent handler to have edit that content. The programmers implementation can leave the result of such edits as anTextBlockor convert it into a Token by settingCanBeAutoSuggestBoxto false. - from the end users perspective the
TokenizingTextBoxcontains text and Tokens seamingly. - also nice would be drag and drop of items - either to rearrange them or to drop them from or into other places
- it should be possible to have drop event handlers to make it possible to drop on Item onto another. Such as the end user wanting to combine two tokens together
- if that it implemented Copy & Paste of items should be also possible. The API should make it possible to combine an Item with one in a clipboard by clicking onto the target item which presents a flyout menu which such option...
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment