Open nick5454 opened 10 years ago
Here is a good project created by Stuart Lodge for mvvmcross. He changed the layouts to be declarative. https://github.com/MvvmCross/MvvmCross-Tutorials/tree/master/QuickLayout
I have been thinking the past several days about how to incorporate this into css form. maybe making it like a background attributes block "layout: AtLeftOf(), AtRightOf(), AtBottomOf(), AtTopOf(), AtWidthOf(), AtHeightOf();" etc.
I've been brainstorming different ideas in that we can take those commands to be width: 50%; to translate to AtWidthOf() and left: translates to AtLeftOf() and build a MainView.AddConstraint(button.AtWidthOf(.5));
Those are my ideas so far. Just toying with the idea.
Thaat would allow to selected the constraint by container as css does
I know this was closed because it's not supported.
But this feature is crucial to using it in heavily style ios Apps for different phone sizes. Please take a look and try to add it, if not can you give a hint to which class and/or steps I should do with the source to achieve this?