Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.