Replies: 2 comments 5 replies
-
I think Comet is already using VStack and HStack, so another name should be chosen for Maui to avoid collision. |
Beta Was this translation helpful? Give feedback.
-
As I said in the dicussion in the issue linked above, "Absolute", "Relative", and "Flex" are precisely the reason we will not be doing this. Those names are not descriptive for new users (they give no indication that they have anything to do with layout).
Stack" is even more problematic, because it conflicts with the name of a common data structure and an existing .NET type.
"HStack" and "VStack" violate the framework naming conventions, so for consistency we will not be using those names for MAUI Controls. If being able to type them faster is a concern, you can always subclass them (
That's one concern; another is portability from Forms. As much as I'd prefer consistent naming for aesthetic purposes, we also have to balance that with the fact that existing users need to update their apps to MAUI. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on the issue GridLayout -> Grid to reduce confusion all layout controls should be renamed.
My proposition:
The abbreviation of the terms speaks for itself. It's ultimately a matter of taste, but shorter terms lead to a cleaner and faster typable variant.
This would be a wish before Maui is made available for release as it is again a code change for .NET Maui users. Such decisions should be implemented in advance. It is also not a big effort to change the code status. It is important that we decide on one variant right from the start.
What is your opinion on this?
Beta Was this translation helpful? Give feedback.
All reactions