我有一个完美的作品一个ObservableCollection,但是当我清除此的ObservableCollection我不能删除出现在运行时绑定错误: System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when b
我有一个列表视图有一个绑定到一个ObservableCollection,我想要它,这样当一个按钮被按下的项目被从列表和SQLite数据库中删除,到目前为止它只从数据库中删除,除非我重新启动应用程序,那么该项目不再在ListView中,有人可以告诉我我做错了什么? 代码背后: namespace Epicure.Views
{
public sealed partial class Ingre
如何在ObservableCollection对象中添加新数据? public class ViewModel
{
private ObservableCollection<Place> places = new ObservableCollection<Place>
{
new Place { City = "New York", Country = "USA"