[Spec] Introduce Actions and remove Events and Commands properties from controls #22923
Unanswered
vhugogarcia
asked this question in
Ideas
Replies: 1 comment
-
We've moved this issue to the Future milestone. This means that it is not going to be worked on for the coming release. We will reassess the issue following the current release and consider this item at that time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introducing Actions for .NET MAUI controls
My main motivation is to reduce the confusion and merge the user actions on an element within a screen. Currently, as an example on Xamarin.Forms a button have properties for clicked, and additionally it has command and command parameter and then we have tap gestures, so, 3 times the same actions. It will be ideal to combine all those properties in something better that works not only for events but for commands in a more granular and scalable way.
This is just my idea! This is the first time I write a [Spec], I'm sorry if I'm missing something. And please feel free to share feedback.
Scenarios
C# Example
XAML Example
Backward Compatibility
The legacy Command, CommandParameter and Events of controls will remain, but can me marked as [deprecated]. Also the can be deprecated and introduce a new one merged and completed.
Difficulty : maybe high?
Beta Was this translation helpful? Give feedback.
All reactions