2019年4月9日

摘要: 阅读全文

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

摘要: 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 熊先生丶 阅读(282) 评论(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) 编辑