INotifyPropertyChanging 是否已从 wp8.1 universal 中删除
Has INotifyPropertyChanging been removed from wp8.1 universal
刚刚尝试将我的应用程序从 Windows Phone 8.0 转换为 Windows Phone 8.1 Universal/store app.
我正在使用 Devart 的 LinqConnect 访问我的 SQLite 数据库,当我将模型添加到项目并进行编译时,我收到了以下错误。
Error 1 The type or namespace name 'INotifyPropertyChanging' could not be found (are you missing a using directive or an assembly reference?)
我 INotifyPropertyChanging
从 wp8.1 中删除了吗?
更新 1:
一些人提到它应该在 System.ComponentModel
命名空间中。
我只是快速浏览了一下,intellisense 说这是有效的
System.ComponentModel.INotifyPropertyChanged
但这不是
System.ComponentModel.INotifyPropertyChanging
INotifyPropertyChanging 未被 Windows 运行时应用程序(商店或 Phone)使用。它不存在于 Windows 商店应用程序的 .Net Framework 中。判断某物是否存在的最佳方法是使用 Visual Studio 的对象浏览器,因为它会读取实时元数据。
它可用于 Windows Phone 个 Silverlight 应用程序。
如果您有实现它的遗留代码,您可以通过创建自己的 INotifyPropertyChanging 定义来消除它。这将在您自己的代码中工作,但您需要删除对调用它的系统代码的任何行为依赖性。
刚刚尝试将我的应用程序从 Windows Phone 8.0 转换为 Windows Phone 8.1 Universal/store app.
我正在使用 Devart 的 LinqConnect 访问我的 SQLite 数据库,当我将模型添加到项目并进行编译时,我收到了以下错误。
Error 1 The type or namespace name 'INotifyPropertyChanging' could not be found (are you missing a using directive or an assembly reference?)
我 INotifyPropertyChanging
从 wp8.1 中删除了吗?
更新 1:
一些人提到它应该在 System.ComponentModel
命名空间中。
我只是快速浏览了一下,intellisense 说这是有效的
System.ComponentModel.INotifyPropertyChanged
但这不是
System.ComponentModel.INotifyPropertyChanging
INotifyPropertyChanging 未被 Windows 运行时应用程序(商店或 Phone)使用。它不存在于 Windows 商店应用程序的 .Net Framework 中。判断某物是否存在的最佳方法是使用 Visual Studio 的对象浏览器,因为它会读取实时元数据。
它可用于 Windows Phone 个 Silverlight 应用程序。
如果您有实现它的遗留代码,您可以通过创建自己的 INotifyPropertyChanging 定义来消除它。这将在您自己的代码中工作,但您需要删除对调用它的系统代码的任何行为依赖性。