Recursive call to Automation Peer API is not valid

Jan 17, 2014 at 10:49 PM

I've been using the WPF Toolkit and everything was working great until I started getting results back of crashes on specific users. I discovered that users that have NVDA, JAWS or other screen reader technologies installed, they would crash whenever items were added to the DataGrid.

After searching the net, I found a workaround that seemed like it worked. I created a new derived class and overrode the OnCreateAutomationPeer method, returning null. This stopped the crashes and everything seemed great.

However...this is not acceptable as a fix, because it now stop ALL announcing from within the DataGrid.

I created a simple DataGrid and let it generate columns, etc. and I don't get the error. However, when I create a template with several controls within the cells, I start to get the error.

Has anyone else found this problem? If so, were you able to find a workaround that did not prevent the screen readers from announcing?