Removing the space after label text in xamarin forms

hyderabadihyderabadi USMember ✭✭✭

Can any one help me on this i want to remove the extra space after the label text please find below screen shot.

Thanks in advance.

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    @hyderabadi said:
    Can any one help me on this i want to remove the extra space after the label text please find below screen shot.

    Thanks in advance.

    You haven't shown your code/xaml so I am presuming this is in a stack layout? Set the spacing property to 0.

  • hyderabadihyderabadi USMember ✭✭✭

    @JohnH not working fine i changed as you said padding and spacing but no luck.

    Thanks for reply.

  • JohnHJohnH GBMember ✭✭✭✭✭

    @hyderabadi said:
    @JohnH not working fine i changed as you said padding and spacing but no luck.

    Thanks for reply.

    You still haven't shown your code or xaml, at this point we are just guessing.

  • JohnHardmanJohnHardman GBUniversity mod

    @hyderabadi said:
    Can any one help me on this i want to remove the extra space after the label text please find below screen shot.

    As @JohnH said, post your code/XAML.

    Also, identify on the screenshot which label you are referring to.

  • hyderabadihyderabadi USMember ✭✭✭



    <ListView.ItemTemplate>






















    </ListView.ItemTemplate>

  • hyderabadihyderabadi USMember ✭✭✭



    <ListView.ItemTemplate>






















    </ListView.ItemTemplate>

  • hyderabadihyderabadi USMember ✭✭✭



    <ListView.ItemTemplate>






















    </ListView.ItemTemplate>

    ``

  • hyderabadihyderabadi USMember ✭✭✭

    Please find the code... Label text is blog description.

    Thanks .

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    You have to use markdown in your post to property tag your code. Otherwise the site tries to render it.
    There are buttons in the formatting ribbon for that.

    Or you can enter them yourself.
    https://redpillxamarin.com/2016/12/13/faq-frequently-asked-questions/

  • JohnHardmanJohnHardman GBUniversity mod

    @hyderabadi said:
    Please find the code... Label text is blog description.

    Do you mean the white space below the blog description, or do you mean to the right of the blog description.

    Assuming you mean the space below, change the VerticalOptions on the Label to Start.
    To assist in debugging, you might want to consider temporarily changing the BackgroundColor to something other than White.

  • jezhjezh Member, Xamarin Team Xamurai

    @hyderabadi
    Could you tell us which blank you want to remove?
    It would be kind of you to post the renderings image you want.

Sign In or Register to comment.