【发布时间】:2016-03-21 09:54:34
【问题描述】:
我正在尝试使用 RemoveAt() 函数从 listview 控件中删除一个项目,但我收到以下错误:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
我正在使用以下代码删除项目:
void remove (object sender)
{
var item = (sender as FrameworkElement).DataContext;
int index = PropSearchList.Items.IndexOf(item);
PropSearchList.Items.RemoveAt(index);
}
【问题讨论】:
标签: c# xaml listview windows-phone-8.1