摘要:namespace WpfGridChange { using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Windows; using System.Threading.Tasks; p
阅读全文
posted @ 2020-06-28 08:56
|
|||
随笔分类 - WPF
摘要:namespace WpfGridChange { using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Windows; using System.Threading.Tasks; p
阅读全文
posted @ 2020-06-28 08:56
摘要:最近在做WPF项目时,要通过Image 来添加图片显示,使用其ImageSource属性来设置image图片的路径进行绑定。最初用的绝对路径进行绑定,没有什么问题,只要将图片所在的绝对路劲复制粘贴就好了。但是,当整个项目的路径发生了变化(将图片放在项目工程目录内的)时,就有问题了,需要手动更改绝对路
阅读全文
posted @ 2020-06-24 10:53
摘要:错误 18 类型引用不明确。至少有两个名称空间(“System.Windows”和“System.Windows”)中已出现名为“VisualStateManager”的类型。请考虑调整程序集 XmlnsDefinition 特性。 E:\C#\oa\ZHao.OA\app.xaml 1 1 ZHa
阅读全文
posted @ 2020-06-24 10:41
摘要:xaml文件编译过程报“给定编码中的字符无效" 原因:文件格式不正确; 解决方法: 1、在vs中打开报错的xaml文件 2、选择文件--》另存为 3、弹出窗口中保存旁边选择”编码保存“ 4、选择utf-8编码 5、确定--》保存 6、重新编译就可以了。
阅读全文
posted @ 2020-06-24 09:42
|
|||