Use select tab property with the position variable in the ViewPager.PageSelected event, same for the TabItem selected event, you don’t need to use If then block Also you might need to subtract the view pager position variable by one as it starts from 0 not 1:
1 Like