-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TokenizingTextBox more flexible #256
Comments
Hello, 'minesworld! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future! |
About the compability with existing code: It would be nice to notice the users of TokenizingTextBox that they should check in their event handler for the case that the The solution shouldn't break existing code - but better "no surprises" for sure. |
moved this to the new repository @minesworld I'm confused,
And in that case, you don't need to transform it. The call to If you want to programmatically add a specific item, you can do whatever transform you need to first, and then call Can you elaborate on your scenario and why the above isn't sufficient? Thanks! |
Per default I'm presenting the user a List of Templates to choose from. So the choosen data should NOT be inserted. The Might have to check that, don't remember if I've tried |
You're right. its even easier - by replacing the Using But : to replace an added To be able to do this this must be done by handling the The |
…n property of the AutoSuggestBox CommunityToolkit#256
I have to revise my comment. It is a lot more code not having the I will provide within the next days (hopefully) a working example what I am doing with the |
Describe the problem
The current model only allows a single use case: adding text as
AddTokenAsync()
data
has to be astring
. Otherwise theTokenItemAdding
event isn't raised and there is no chance to change theItem
to be added.By always raising the
TokenItemAdding
event the TokenizingTextBox could be used in ways not possible without.Also needed: having the possibility to access the
AutoSuggestBox
IsSuggestionListOpen
property...Describe the solution
TokenizingTextBox.cs
if data is not a string, call the event with
string.Empty
and the item set to data... should be compatible this way with existing code.TokenizingTextBoxItem.AutoSuggestBox.cs
Alternatives
None
Additional info
Sorry for not providing a pull request.
Spent hours integrating the needed source files into my project in Visual Studio... . "total mess" for someone new to Windows development just wanting to code and having no clue about the tool chain.
Help us help you
None
The text was updated successfully, but these errors were encountered: