Forum Xamarin.Forms

How to set unique numbers/tag for Xamarin Forms Layouts

My problem:

I use the listview for quiz page.

Four options in Four Relative layout (Icon Image & Option label)

I set the onTab listener in these four layouts.

I want to find out the position of listview from this Tab listener.

My question:

i need to set index for each relative layout. (In android it have setTag for view).

I want similar like setTag() for relative layout...

Best Answer

  • seanydaseanyda GBMember ✭✭✭✭✭
    Accepted Answer

    Can you not assign a class id to the items in your Relative Layout to identify them or there "tag"?

    Grid g = new Grid { ClassId = "test" };


Sign In or Register to comment.