Skip to content

EventToCommandBehavior Entry Behavoir #484

Closed Answered by bijington
DeepWorksStudios asked this question in Q&A
Discussion options

You must be logged in to vote

@DeepWorksStudios it looks like you would need to implement your own converter that will convert the TextChangeEventArgs (guessing at name) over to something you want to use. Here is an example of a converter that we provide but we don't provide the one you want: https://github.com/CommunityToolkit/Maui/blob/main/src/CommunityToolkit.Maui/Converters/ItemTappedEventArgsConverter.shared.cs

You could have a converter that simply returns the eventArgs (so it doesn't actually convert anything) and it would then be possible to use as your CommandParameter.

I would ask though, is there anything specific you need out of the event args? If you don't need them then the binding will take of informin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DeepWorksStudios
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants