Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Extra padding on Buttons etc compared to Labels?

$
0
0

If I use code like this:

 new StackLayout()
        {

            Children = {new Label() {Text="Hello"}, new Entry()  {Text="Hello"}, new Label() {Text="Hello"}, new Button {Text="Hello"}
            }
        };

Then the Entry and Button controls are indented to the right compared to the labels. Is this on purpose?
How do I get the labels and the other controls to left-align, do I have to get rid of some automatic extra padding on some of the controls?

I'm very impressed by Xamarin forms! :) I understand the pressure you are on regarding this brand-new product, adding features, fixing bugs and writing documentation.
Currently the most confusing parts for me is the navigation system (I know what a modal dialog is, but I'm not able to tell what PushModalAsync really is compared to PushAsync and what constraints follows from using modal compared to using non-modal) and the layout system, I'm sometimes confused even when only using simple StackLayouts. So for me, the navigation system and the layout system is the subsystems I find most lacking in documentation at the moment.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>