摘要: Recently, I have recieved a few questions about Silverlight DataGrid. It's about how to change one row to be columns just like we see in an Excel book sheet. Actually, we call this kind of table as a PivotTable or PivotGrid.As this is another control which has not been included as a build-in con 阅读全文
posted @ 2011-06-29 21:38 万力王 阅读(879) 评论(0) 推荐(1) 编辑
摘要: 当前xap文件: App.Current.Host.Source.AbsoluteUri完整的部署页面地址: System.Windows.Browser.HtmlPage.Document.DocumentUri.ToString()另外,在Navigation template里用到的当前内容页的地址: NavigationService.CurrentSource.ToString()很简单,但是觉得有必要记住这几个类的用处。 阅读全文
posted @ 2011-04-27 11:29 万力王 阅读(560) 评论(0) 推荐(0) 编辑
摘要: This document comes from this blog. I think it's very useful and reposted here.http://blogs.profitbase.com/tsenn/?p=53One of the differences between WPF and Silverlight is that using Bindings when setting properties in styles is still not supported (SL 4). If you try to do so, your application w 阅读全文
posted @ 2011-02-25 14:49 万力王 阅读(476) 评论(2) 推荐(0) 编辑
摘要: 我们在开发基于.NET的面向对象的程序的时候,抽象类和接口的概念和用法经常会搞不清楚。其实理解它们并不困难。一、什么是抽象类?抽象类是对某一类型的事物,在编程时,为了描述这类事物,而高度抽象、总结出来的一种基础类型。这么说还是很晦涩,打个比方好了,就好比说动物,动物就是一种抽象类,当我们说动物的时候,我们可以想象出很多种具体的动物类别,比如,猪、狗、老虎、狮子,这些都是继承了“动物”这个抽象类而实现了各自特有属性特征的具体子类。抽象类有几个必要因素:1、抽象类不能实例化。2、抽象类可以含有抽象方法和其他带有抽象标志的访问器。(什么是抽象方法,我们接着说。)3、抽象类是用来给其他类继承的,所以, 阅读全文
posted @ 2010-12-05 20:17 万力王 阅读(622) 评论(0) 推荐(0) 编辑
摘要: From:http://www.dotnetcurry.com/ShowArticle.aspx?ID=208Note: This article is written based on a pre-release version of Silverlight and could change in future.In Silverlight, we often come across a ver... 阅读全文
posted @ 2010-12-01 10:28 万力王 阅读(423) 评论(3) 推荐(0) 编辑
摘要: Are you frustrated by the lack of code samples for a certain programming task? Have you ever wished somebody would write code samples for you based on your requests?Announcement: FREE Code Sample Requ... 阅读全文
posted @ 2010-10-28 09:37 万力王 阅读(250) 评论(0) 推荐(1) 编辑
摘要: WCF 4(based on .NET Framework 4.0) 是我们能够轻松地实现跨域的WCF services访问。接下来我们就一步步讲解如何实现,并说明实现过程中遇到的一些问题和解决方法。1,打开Visual Studio 2010,添加一个Web Application或者WCF Service Application,并在项目中添加一个Ajax-enabled WCF servic... 阅读全文
posted @ 2010-10-20 12:08 万力王 阅读(4685) 评论(19) 推荐(5) 编辑
摘要: 这个sample是微软OneCode项目中,我最新写的一个,我发表的同时估计还没有check in上去。所以这里先睹为快了。微软一站式代码示例库 通过不同编程语言和典型示例勾画出微软所有开发技术的骨架。身处微软MSDN技术支持团队,我们有丰富的客服经验。项目中每一个示例都经我们精心设计、筛选、编排和文档化,从而演示那些经常被客户问到、或被测试人员测试到的编程场景。如果您是一位软件开发工程师,您可以... 阅读全文
posted @ 2010-10-18 16:23 万力王 阅读(436) 评论(0) 推荐(1) 编辑
摘要: 我在面试的时候,通常都会问应试者这个问题,结果通常都令人失望。其实很多用ASP.NET开发多年的程序员对这个问题也都不太清楚。我为什么要说明这个问题呢?其实这个问题对使用ASP.NET开发而言并没有多大影响,但是如果能够正确地理解他们两者的区别,同样也能帮助我们解决许多在开发过程中遇到的问题。首先我们从如何创建这两中项目说起,请看下面两张截图。我用的是Visual Studio 2010,Visu... 阅读全文
posted @ 2010-10-18 15:36 万力王 阅读(1035) 评论(1) 推荐(1) 编辑
摘要: AjaxControlToolkit is a useful package for us to work with ASP.NET AJAX. There some extenders and controls need webservice to return the data. For example, AutoCompleteExtender, CascadingDropDown, Num... 阅读全文
posted @ 2010-10-18 14:26 万力王 阅读(299) 评论(0) 推荐(0) 编辑