Hello, I am a teacher and I am creating my first Xamarin app. I am using Prism for my MVVM framework and one of your grids. I have a screen listing all the sections I teach (bound to an observable collection in my view model). When the I select a section and click on a button I want to navigate to a page with a list of students in that section.
The trouble is that I don’t know what row was selected when I am in my view model. I don’t want to go into the code behind as shown in the documentation. I thought there would be a property in the grid (selected items?) that I could bind to my view model so that when I click the button I would know what section had been selected.
What would be the best way to achieve this with the Infragistics grid?
I would sugtest taking a different, more simplified approach. You should utilize the EventToCommand behavior that is built into Prism.
The docs for the feature can be found here: http://prismlibrary.github.io/docs/xamarin-forms/EventToCommandBehavior.html
You can see a sample here: https://github.com/PrismLibrary/Prism-Samples-Forms/tree/master/ContosoCookbook
The line of code you would be interested in is here: https://github.com/PrismLibrary/Prism-Samples-Forms/blob/master/ContosoCookbook/ContosoCookbook/ContosoCookbook/Views/MainPage.xaml#L25