随笔分类 -  WPF

摘要:<Window x:Class="WpfDemo.RelativeSourceDemo" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2021-07-29 16:44 zq爱生活爱代码 阅读(64) 评论(0) 推荐(0)
摘要:创建对象赋给 ObjectInstance属性,但是我们也可以交给 XAML来创建对象 然后会根据 MethodName 来指定具体方法,见上面的代码 阅读全文
posted @ 2021-07-25 22:55 zq爱生活爱代码 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-25 22:27 zq爱生活爱代码 阅读(34) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-25 22:11 zq爱生活爱代码 阅读(54) 评论(0) 推荐(0)
摘要:1. 绑定CLR对象属性 2.绑定控件属性 3.获取字符串指定字符的值 4.显示集合子元素的属性 5.绑定基本数据类型的值 6.没有指定Path,Binding会把控件的DataContext当做自己的Source 7.通过 ElementName指定source,也可以把控件本身赋给Source 阅读全文
posted @ 2021-07-24 05:18 zq爱生活爱代码 阅读(68) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfDemo.LAY_OUT_GRID" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2021-07-24 04:27 zq爱生活爱代码 阅读(218) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-24 04:24 zq爱生活爱代码 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-24 03:59 zq爱生活爱代码 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-24 03:24 zq爱生活爱代码 阅读(100) 评论(0) 推荐(0)
摘要:转载 https://www.cnblogs.com/dotnetHui/p/8342398.html 微软在VisualTreeHelper类中,提供了一些实用工具方法,用于执行涉及可视化树中的节点的常规任务,VisualTreeHelper 类中的一些方法可以接受表示任意一种可视对象类型的 De 阅读全文
posted @ 2021-07-24 02:40 zq爱生活爱代码 阅读(259) 评论(0) 推荐(0)
摘要:<Window x:Class="WpfDemo.XPASEDemo" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006 阅读全文
posted @ 2021-07-24 02:18 zq爱生活爱代码 阅读(260) 评论(0) 推荐(0)