2019年4月9日

摘要: 1. x:Code 用于代码前置 可以吧 C#代码内嵌到前端里 2. x:XData 用于内嵌xml 文件 阅读全文

posted @ 2019-04-09 15:32 熊先生丶 阅读(132) 评论(0) 推荐(1) 编辑

摘要: 1.x:type 用于前端类型声明 与C# 代码 Type类似 2.x:Null 代表Null 某些时候需要显示的为一些值设置为空 前端为 x:Null C# 中 为 Null 3.x:array 代表数组 与C# 中 的Array 类似 上图为前端声明并实例化一个 string数组 4.x:Sta 阅读全文

posted @ 2019-04-09 15:22 熊先生丶 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 1.x:class 该属性用于 后台代码与前端xaml代码连接 代码实例如下图 2.x:ClassModifier 该属性用于控制可见级别 public 等 与C#中的可见级别相同 internal 对应private 在wpf internal 即代表私有 private 在wpf中无法使用 3. 阅读全文

posted @ 2019-04-09 15:11 熊先生丶 阅读(283) 评论(0) 推荐(1) 编辑

摘要: xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns 为window控件的属性 代表声明引用 如同C#代码中的 using “d” 为程序员自定义的别名,方便以后使用 后面引号内部即为真正的引用地址 使用方法为 别名+“ 阅读全文

posted @ 2019-04-09 14:24 熊先生丶 阅读(200) 评论(1) 推荐(0) 编辑

2019年3月15日

摘要: 以上代码 在 button1被点击时 触发bing方法 公共变量 是 a 是个int数组 引用类型, 当在 bing方法里公共变量a以参数的方式传进来,在bing方法中修改,aa数组 会同步到 全局变量 a上 ,使得公共变量a也会被修改 同样的代码 在bing方法中 由修改变成赋值,这里bing里的 阅读全文

posted @ 2019-03-15 11:21 熊先生丶 阅读(379) 评论(1) 推荐(1) 编辑

2017年10月24日

摘要: Task task1 = Task.Factory.StartNew(() => { Console.WriteLine("Hello,task started by task factory"); });Task task2=new Task(() => { //TODO you code }); 阅读全文

posted @ 2017-10-24 17:24 熊先生丶 阅读(116) 评论(0) 推荐(1) 编辑

2017年7月14日

摘要: PageMethods.fsyzm($("#shouji").val(), funReady, funError); function funReady(result) { if (result != null) { } else { ... 阅读全文

posted @ 2017-07-14 16:42 熊先生丶 阅读(286) 评论(2) 推荐(1) 编辑

摘要: using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Runtime.Serialization.... 阅读全文

posted @ 2017-07-14 16:37 熊先生丶 阅读(239) 评论(0) 推荐(0) 编辑

2017年6月27日

摘要: ("#id").css('display','none'); $("#id").css('display','block'); 或 $("#id")[0].style.display = 'none'; $("#id")返回的是JQuery 它是个集合肯定有display属性 $("#id").show()表示display:block, $("#id").hide()... 阅读全文

posted @ 2017-06-27 11:38 熊先生丶 阅读(1475) 评论(0) 推荐(0) 编辑

2017年5月11日

摘要: private Point mPoint = new Point(); private void 选择控件_MouseDown(object sender, MouseEventArgs e) { mPoint.X = e.X; mPoint.Y = e.Y; } ... 阅读全文

posted @ 2017-05-11 15:11 熊先生丶 阅读(806) 评论(0) 推荐(1) 编辑