Hi,
I am working on a hobby project to create a digital book collection application. I am using the sdfatagrid control to visualize all the books I have in my collection.
<syncfusion:SfDataGrid ItemsSource="{Binding Books}" SelectedItem="{Binding Book}" Height="500" MouseDoubleClick="{Binding ViewBookCommand}"
IsReadOnly="True" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.ColumnSpan="3"
AutoGenerateColumns="True" AllowFiltering="True" Grid.Row="1" NavigationMode="Row" x:Name="booksGrid">
<syncfusion:SfDataGrid.InputBindings>
<MouseBinding Gesture="LeftDoubleClick" Command="{Binding ViewBookCommand}" CommandParameter="{Binding ElementName=booksGrid, Path=SelectedItem}"/>
</syncfusion:SfDataGrid.InputBindings>
</syncfusion:SfDataGrid>
I am using the above code in my XAML view. Since I am using MVVM (specifically MVVMCROSS) I want to navigate to a different view with more details about the book.
Unfortunately, the code above doesn't work and no errors are given either. Could someone help me out to get it to work with the InputBindings and MouseBindings elements?
Thanks in advance.