locked
how to navigate from one screen to another clicked in listview item by MVVM. RRS feed

  • Question

  • User389014 posted

    I was created listview and implemented logic when clicked ItemSelected then displayalert window showed data inside listview cell.

    Now, I want to redirect to new screen but with MVVM.

    Wednesday, September 18, 2019 10:08 AM

All replies

  • User48866 posted

    The best way to do this is to have a navigation service and navigate between pages using the view model. The following repository includes a simple example project that navigates between pages when the list item is clicked.

    https://github.com/syncfusion/xamarin-ui-kit-mycart-demo

    Note: I work for Syncfusion.

    Wednesday, September 18, 2019 10:21 AM
  • User89714 posted

    @PrabakaranRamasamy said: The best way to do this is to have a navigation service and navigate between pages using the view model. The following repository includes a simple example project that navigates between pages when the list item is clicked.

    https://github.com/syncfusion/xamarin-ui-kit-mycart-demo

    I suspect the OP is after an example using just XF at this stage, rather than pulling in Syncfusion.

    BTW - don't forget to mention that you work for Syncfusion when redirecting people to Syncfusion resources.

    Wednesday, September 18, 2019 10:28 AM
  • User369978 posted

    Prism is a good choice .

    Wednesday, September 18, 2019 12:56 PM