阅读背景:

无法在事件处理程序combobox_selectionChanged中访问datagrid.itemsSource?

来源:互联网 

i am developing a wpf application , in which when the user performs selection changed action on a combobox , selection changed event is triggered, but in the event handler when i update datagrid.itemsSource, error is shown to use a new key word to create the object, through break point i have seen that inside the event handler datagrid object itself is null, but it is not null in the MainWindow function. why is it so?i am developing a wpf application , in which wh




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: