摘要: 先看一段confirm的简介    ConfirmButton is a simple extender that catches clicks on a button (or any instance of a type derived from Button) and displays a message to the user. If the "OK" button is clicked, ... 阅读全文
posted @ 2010-05-29 09:01 i'm zjz 阅读(408) 评论(0) 推荐(0) 编辑
摘要: WPF支持OneWay,TwoWay,OneTime,Default和OneWayToSource等多种绑定模式无论是目标属性还是源属性,只要发生了更改,TwoWay就会更新目标属性或源属性。OneWay仅当源属性发生更改时更新目标属性。OneTime仅当应用程序启动时或DataContext进行更改时更新目标属性。OneWayToSource在目标属性更改时更新源属性。Default:使用目标属... 阅读全文
posted @ 2010-05-26 22:45 i'm zjz 阅读(2466) 评论(3) 推荐(0) 编辑
摘要: 客户端 ID:开发人员现在可以管理会对所呈现客户端 ID 造成影响的控件 ID。Control 类现在提供了一个新的 ClientIDMode 属性,可用于在确定是否需要在呈现时重构客户端 ID 时,指定运行时的行为。这将删除客户端 ID 中以前的无用信息。  修改客户端 ID 属性可以确保各元素都被唯一标识。但是,对于需要执行客户端脚本任务的开发人员来说,这会带来非常大的麻烦。如果您使用过 AS... 阅读全文
posted @ 2010-05-25 06:54 i'm zjz 阅读(720) 评论(0) 推荐(0) 编辑
摘要: The WPF framework provides a rich set of built-in controls. The controls can be devided in the following categories. 阅读全文
posted @ 2010-05-21 22:51 i'm zjz 阅读(233) 评论(0) 推荐(1) 编辑
摘要: Best PracticesAvoid fixed positions - use theAlignmentproperties in combination withMarginto position elements in a panelAvoid fixed sizes - set theWidthandHeightof elements toAutowhenever possible.Do... 阅读全文
posted @ 2010-05-21 07:18 i'm zjz 阅读(243) 评论(0) 推荐(0) 编辑
摘要: What's new in XAML of .NET 4.0 阅读全文
posted @ 2010-05-21 06:52 i'm zjz 阅读(390) 评论(0) 推荐(0) 编辑
摘要: SqlServer2005起新增了4个新的排名函数:ROW_Number,RANK,DENSE_RANK和NTILE。这些函数提供了一种简单高效的方式来执行排名计算。 从技术上来讲,其他排名函数和ROW_NUMBER类型,但他们的实际应用却少很多。Rank和DENSE_RANK主要用于排名和积分,NTILE更多用于分析。 排名函数只能用于查询的SELECT和ORDER BY子句中。排名函数的一般形... 阅读全文
posted @ 2010-05-02 14:35 i'm zjz 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Enumerable.First 方法返回序列中的第一个元素。Enumerable.FirstOrDefault 方法返回序列中的第一个元素;如果序列中不包含任何元素,则返回默认值。Enumerable.Single 方法返回序列的唯一元素;如果该序列并非恰好包含一个元素,则会引发异常。Enumerable.SingleOrDefault 方法返回序列中满足指定条件的唯一元素;如果这类元素不存在,... 阅读全文
posted @ 2010-04-19 21:15 i'm zjz 阅读(2703) 评论(5) 推荐(0) 编辑
摘要: 确定用于将实体发送到数据服务或从数据服务中接收实体的同步选项。Queries executed by the Entity Framework are evaluated against the data in the data source and the results will not reflect against the new objects in the object context... 阅读全文
posted @ 2010-04-05 08:19 i'm zjz 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 递归CTE是Sql Server2005 中很重要的T-Sql 增强之一。SqlServer 最终还是通过纯基于集合的查询实现了递归查询。可以受益于递归查询的任务和操作包括操作图,树,层次结构等。这儿介绍一个递归CTE。 阅读全文
posted @ 2010-01-31 14:36 i'm zjz 阅读(445) 评论(0) 推荐(0) 编辑