I want to be able to handle when a user does a long press on a row, and get the data item as the parameter to the command. Is there a way to this already, or is the only solution to create a custom behavior that uses a custom gesture?
I have tried using community toolkit touchbehavior, since it is a platform behavior it does not have reference to the grid or data item. Binding the SelectedItem in the view model does not get set in time -- the value in the view model is null when the command fires. I also tried Binding the CommandParameter to the SelectedItem, binding to the dataGrid by reference, which is null in the command parameter as well.
Any suggestions are welcomed, thanks for reading.