We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to bind view model navigation to CardTapped event and pass selected object

I am testing using the Kanban control to show all of my tasks but when the task card is clicked I need it to pass the selected object to the navigation service and route to the edit page. Using a GridView I was using the ItemClick event (ItemClick="{x:Bind ViewModel.GotoDetailsPage}") to route to the edit page like this public void GotoDetailsPage(object sender, ItemClickEventArgs e) => NavigationService.Navigate(typeof(Views.TaskDetailPage), (UserTask)e.ClickedItem), how can I do the same with the Kanban control.



1 Reply

MK Muneesh Kumar G Syncfusion Team February 11, 2019 11:53 AM UTC

Hi Ed,  
   
Greetings, we have analyzed your requirement and you can achieve this by using CardTabbed event in SfKanban. In this event you can get selected card, column and index details.  
 
Code snippet 
   public void Kanban_CardTapped(object sender, KanbanTappedEventArgs e) 
   { 
 
   } 
 
 
Please let us know if you have any other queries.  
   
Thanks,  
Muneesh Kumar G.  
 


Loader.
Live Chat Icon For mobile
Up arrow icon