private void Bindable_ItemTapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e) { var treeViewNode = e.Node; if (treeViewNode.ChildNodes.Count == 0) { return; } var treeView = sender as SfTreeView; if (treeViewNode.IsExpanded) { treeView.CollapseNode(treeViewNode); } else { treeView.ExpandNode(treeViewNode); } }
private void TreeView_Itemapped(object sender, Syncfusion.XForms.TreeView.ItemTappedEventArgs e) { App.Current.MainPage.DisplayAlert("Item Tapped", "TreeView item tapped", "Close"); }