I have a wpf datagrid bound to a TrackableCollection. In some rare occations, and for only a few selected users, the application will crash when the user adds a new record by en
I had the same issue with touch screen only. I had a WPF app that was working fine until I connected the touch screen that the app was built for.
This issue occur when the DataGrid selected item was bounded to an object that was null;
I resolved it this way:
The DataGrid Xaml had this line:
SelectedItem="{Binding SelItem}"
The XVVM looked like:
public MyViewModel SelItem
{
get
{
if (m_selected == null)
return new MyViewModel();
else
return m_selected;
}
}