crash in ComboBox coerce (not my code)

前端 未结 5 1006
臣服心动
臣服心动 2020-12-20 13:20

I got the stack trace below reported from a customer. I don\'t know how to reproduce this. My WPF application has a fair number of ComboBoxes; I\'m not sure how to determine

5条回答
  •  [愿得一人]
    2020-12-20 14:06

    We have a bespoke filtered combobox we made as a usercontrol that inherits from combobox. On Windows 10 machines we started to get this error for filtered comboboxes within forms on datagrid rows. We have a filtered combobox within the DataGrid.RowDetailsTemplate on a DataGrid.

    To make the error go away we overrode this sub within our Filtered_Combobox class.

    Protected Overrides Sub OnIsKeyboardFocusWithinChanged(e As DependencyPropertyChangedEventArgs)
        Try
    
    
        Catch ex As Exception
        End Try
    End Sub
    

    Note: We havent put any code in the override yet because it didnt seem to do anything (despite crash the application).

提交回复
热议问题