Tap on a item in a listview and open new page

So i have a list view like so:

<ListView x:Name="curso" ItemSelected="CursoView_ItemSelected" SelectedItem="{Binding SelectedItem}" HasUnevenRows="True">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <ViewCell.View>
                        <StackLayout Orientation="Horizontal">
                            <StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand">
                                <Label StyleClass="Header" Text="{Binding name}" />
                            </StackLayout>
                        </StackLayout>
                    </ViewCell.View>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
  </ListView>

This list view is populated by a info from a webserver. For now it was 3 itens and i want to when a user taps on one item it opens a page related to that item. How can i do that in the codebehind?

Sign In or Register to comment.