上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页
摘要: partial 可以实现将一个类的类容分布到不同的cs文件. 然后通过文件名,可以达到这种效果~~~~ 这样感觉还是挺酷的~~~ 阅读全文
posted @ 2021-08-24 18:23 宋桓公 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 没有参数: Func<TResult> 有参数:Func<T,TResult> T代表传入参数类型,TResult代表返回参数类型,当然可以有多个参数T1、T2、T3… 上代码 class FuncTest { string One(int num, string str, float f) { r 阅读全文
posted @ 2021-08-16 18:58 宋桓公 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 设计器异常,提示NullReferenceException 未将对象引用设置到对象例 程序运行时没有问题的, 但是设计器崩了~~ 解决方案: 加上一句话: if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { 阅读全文
posted @ 2021-08-16 17:56 宋桓公 阅读(27) 评论(0) 推荐(0) 编辑
摘要: x:Class="TapeMountingMachine.PageAxisPara1" 表示改Xaml关联的后台逻辑的类名称是PageAxisPara1 如果要修改命令空间的层次,注意这两个地方要同步进行修改~~~ 阅读全文
posted @ 2021-08-16 13:29 宋桓公 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 首先让你的数据类实现接口 ICloneable 比如: public class Info : INotifyPropertyChanged, ICloneable { // 实现ICloneable的Clone函数 public object Clone() { return this; //注意 阅读全文
posted @ 2021-08-12 16:19 宋桓公 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页