How to Center 2 labels on 1 grid row

Hoobie 6 Reputation points
2021-04-15T19:14:20.88+00:00

Hi,
I want to center 2 labels (first one is an icon, second one is a data field) on 1 single row. Could anyone please advice how to achieve this so the icon + the data is horizontal centered on the phone
I added a code snippet from my existing code
88344-codesnippet.png

Could someone please give me some guidance or small example , thanks a lot

Kris

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,807 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2021-04-16T02:16:24.277+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Set VerticalTextAlignment="End" on the first label .

    Set VerticalTextAlignment="Center" on the second label .

    My test

    88424-capture.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.