上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页
摘要: 没有参数: 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 宋桓公 阅读(42) 评论(0) 推荐(0)
摘要: 设计器异常,提示NullReferenceException 未将对象引用设置到对象例 程序运行时没有问题的, 但是设计器崩了~~ 解决方案: 加上一句话: if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { 阅读全文
posted @ 2021-08-16 17:56 宋桓公 阅读(75) 评论(0) 推荐(0)
摘要: x:Class="TapeMountingMachine.PageAxisPara1" 表示改Xaml关联的后台逻辑的类名称是PageAxisPara1 如果要修改命令空间的层次,注意这两个地方要同步进行修改~~~ 阅读全文
posted @ 2021-08-16 13:29 宋桓公 阅读(75) 评论(0) 推荐(0)
摘要: 首先让你的数据类实现接口 ICloneable 比如: public class Info : INotifyPropertyChanged, ICloneable { // 实现ICloneable的Clone函数 public object Clone() { return this; //注意 阅读全文
posted @ 2021-08-12 16:19 宋桓公 阅读(263) 评论(0) 推荐(0)
摘要: 1 需要添加Dll Microsoft.Expression.Drawing.dll 2 如果你用控件库需要添加这个dll 使用控件库的主界面项目,也必须添加这个DLL! 阅读全文
posted @ 2021-08-03 17:16 宋桓公 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页