Use selectitem to navigate to other page

I  downloaded this Treeview ,https://help.syncfusion.com/xamarin/treeview/getting-started

Looks nice but i want to use the Treeview to navigate to other pages.

What do i change or add when i select a item 

Lets say i select In Music / Gouttes

Then i want to navigate to this page

            await Navigation.PushAsync(new Fam());


Maybe i have to change something here  ? 

  private void TreeView_Itemapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e)

        {

            App.Current.MainPage.DisplayAlert("Item Tapped", "TreeView item tapped", "Close");

        }






1 Reply 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team October 19, 2020 07:14 AM UTC

Hi Boris, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Use selectitem to navigate to other page” from our end. We would like to inform you that we have documented your requirement in our online documentation and you can refer to our documentation and sample from the following link, 
 
Also, you can use SfTreeView.ItemTapped event to navigate to another page. Please refer the following code snippets to achieve your requirement, 
 
C# 
private async void TreeView_Itemapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e) 
{ 
        await Navigation.PushAsync(new Fam()); 
        App.Current.MainPage.DisplayAlert("Item Tapped", "TreeView item tapped", "Close"); 
} 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 
 


Marked as answer
Loader.
Up arrow icon