摘要: 列可调 CanUserResizeColumns="True" 阅读全文
posted @ 2020-07-21 12:06 wesson2019 阅读(93) 评论(0) 推荐(0) 编辑
摘要: F#是由微软发展的为微软.NET语言提供运行环境的程序设计语言。它是基于Ocaml的,而Ocaml是基于ML函数程序设计语言的。 这是一个用于显示.NET在不同编程语言间互通的程序设计。 阅读全文
posted @ 2020-07-21 09:55 wesson2019 阅读(212) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 高性能 计时器:统计功能耗时ms /// </summary> public class HiPerfTimer { [System.Security.SuppressUnmanagedCodeSecurity] [System.Runtime.InteropSe 阅读全文
posted @ 2020-07-20 18:11 wesson2019 阅读(153) 评论(0) 推荐(0) 编辑
摘要: SolidColorBrush + Color using System.Windows.Media; /// <summary> /// 画刷-红色 /// </summary> public static SolidColorBrush BackgroundColorRed = new Soli 阅读全文
posted @ 2020-07-20 10:57 wesson2019 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 乐观锁,大多是基于数据版本(Version)记录机制实现。何谓数据版本?即为数据增加一个版本标识,在基于数据库表的版本解决方案中,一般是通过为数据库表增加一个 “version” 字段来实现。 版本号 读取出数据时,将此版本号一同读出,之后更新时,对此版本号加一。此时,将提交数据的版本数据与数据库表 阅读全文
posted @ 2020-07-16 11:58 wesson2019 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 悲观锁,正如其名,它指的是对数据被外界(包括本系统当前的其他事务,以及来自外部系统的事务处理)修改持保守态度,因此,在整个数据处理过程中,将数据处于锁定状态。悲观锁的实现,往往依靠数据库提供的锁机制(也只有数据库层提供的锁机制才能真正保证数据访问的排他性,否则,即使在本系统中实现了加锁机制,也无法保 阅读全文
posted @ 2020-07-16 11:55 wesson2019 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 自定义属性,依赖属性,附加属性 阅读全文
posted @ 2020-07-13 18:37 wesson2019 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 属性binding方式 绑定到DataContext <!--绑定到DataContext--> <Button Content="{Binding DataTime}"/> <Button Content="{Binding RelativeSource={RelativeSource self} 阅读全文
posted @ 2020-06-17 15:04 wesson2019 阅读(2693) 评论(0) 推荐(0) 编辑
摘要: 虚化、第一次执行 阅读全文
posted @ 2020-06-15 17:36 wesson2019 阅读(593) 评论(0) 推荐(0) 编辑
摘要: StaticResource从自身的容器开始,向上查找资源,而DynamicResource从自身开始,向上查找资源。也就是说StaticResource不支持向前引用(自身创建引用点后,不能使用自身以后定义的资源)。 StaticResource不会在运行时改变资源,而DynamicResourc 阅读全文
posted @ 2020-06-12 15:09 wesson2019 阅读(323) 评论(0) 推荐(0) 编辑