How to Center 2 labels on 1 grid row

Hoobie 6 Reputation points

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

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


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

1 answer

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


    Welcome to Microsoft Q&A!

    Set VerticalTextAlignment="End" on the first label .

    Set VerticalTextAlignment="Center" on the second label .

    My test


    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.