c# - ASP.NET Core MVC 的 BitmapImage 参考
问题描述
我将 C# WPF 应用程序转换为 ASP.Net 核心 MVC。在我的模型中,我有这个:
private BitmapImage picture;
[NotMapped]
public BitmapImage Picture
{
get { return picture; }
set
{
picture = value;
NotifyPropertyChange();
NotifyPropertyChange(nameof(CanViewPicture));
}
}
但BitmapImage
不被认可,我找不到对PresentationCore.dll
WPF 项目(框架 4.6.1)的等效参考,使用BitmapImage
. ( using System.Windows.Media.Imaging;
)
请问有人知道吗?
解决方案
推荐阅读
- email - 从 Erlang 发送邮件 - OTP 应用程序或操作系统应用程序
- java - 查询C3P0开始获取的连接数
- firebase - 在 Firestore 中一次按数组项和其他字段查询
- android - Firestore 嵌套获取使用回调在初始调用时获取空结果
- c# - 使用字符串对象成员名称处理 IQueryable.OrderBy 扩展中的无效输入
- javascript - 我需要根据日期按降序对数组进行排序
- symfony - Symfony 3.4:NumberType 和 MoneyType 正在呈现文本类型的 html 输入而不是数字类型的输入
- macos - MAMP vhost:“在此服务器上找不到请求的 URL /。”
- c# - 双击datagridview后组合框中的SelectedValue
- python - 尝试使用 django 设置 mysql 时出错