摘要: A very simple example of displaying validation error next to controls in WPFIntroductionThis is a simple example of validation in XAML for WPF control... 阅读全文
posted @ 2014-10-31 23:55 玖彩技术团队 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 1、ValidationRule 验证ValidationRule:是通过ValidationRule中的的Validate方法来验证我们绑定的属性。所以我们的用法是继承ValidationRule,重写他的Validate方法。示例public class RequiredRule : Valid... 阅读全文
posted @ 2014-10-31 22:50 玖彩技术团队 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.163.com/wangzhenguo2005@126/blog/static/37140526201085113430862/值转换器可以把一种类型转换成另一种类型。例如,绑定到一个代表图片地址的字符串,希望显示的是图片,将数据存储为浮点类型,但通过货币的形式呈现;还... 阅读全文
posted @ 2014-10-31 22:39 玖彩技术团队 阅读(457) 评论(0) 推荐(0) 编辑
摘要: How to Add Columns to a DataGrid through Binding and Map Its Cell ValuesLance Contreras, 7 Nov 2013 CPOL 4.94 (9 votes) 123454.94/5 - 9 votesμ 4.94, ... 阅读全文
posted @ 2014-10-31 22:22 玖彩技术团队 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Guide to WPF DataGrid formatting using bindingsPeter Huber SG, 25 Nov 2013 CPOL 4.83 (13 votes) 123454.83/5 - 13 votesμ 4.83, σa 0.93 [?] Rate:... 阅读全文
posted @ 2014-10-31 22:15 玖彩技术团队 阅读(833) 评论(1) 推荐(0) 编辑
摘要: 转载:http://blog.csdn.net/jhqin/article/details/7645357/*----------------------------------------------------------文件名称:DataGridPlus.cs作者:秦建辉MSN:splashc... 阅读全文
posted @ 2014-10-31 22:01 玖彩技术团队 阅读(6557) 评论(0) 推荐(0) 编辑
摘要: 在使用WPF进行应用程序的开发时,经常会为DataGrid生成行号,这里主要介绍一下生成行号的方法。通常有三种方法,这里主要介绍其中的两种,另一种简单提一下。1. 直接在LoadingRow事件中操作。这种方式是在code behind文件中操作。即相应的*.xaml.cs文件。代码如下:this.... 阅读全文
posted @ 2014-10-31 21:49 玖彩技术团队 阅读(3299) 评论(1) 推荐(0) 编辑
摘要: 1. 可传递的消息: WPF的UI是由布局组建和控件构成的树形结构,当这棵树上的某个节点激发出某个事件时,程序员可以选择以传统的直接事件模式让响应者来响应之,也可以让这个事件在UI组件树沿着一定的方向传递且路过多个中转结点,并让这个路由过程被恰当的处理。2,WPF有两种树,Logical Tree和... 阅读全文
posted @ 2014-10-31 15:00 玖彩技术团队 阅读(701) 评论(0) 推荐(0) 编辑
摘要: WPF DataGrid Custommization using Style and Template代码下载:http://download.csdn.net/detail/wujicai/8104531customize DataGridRowHeader, DataGridColumnHea... 阅读全文
posted @ 2014-10-31 13:10 玖彩技术团队 阅读(1597) 评论(0) 推荐(0) 编辑
以上只是个人想法和实践经验,如果有文字错误和语法错误,请加以指点! QQ:247039968 emil:wujc@younger.com 无论是美女的歌声,还是鬣狗的狂吠,无论是鳄鱼的眼泪,还是恶狼的嚎叫,都不会使我动摇