2014年1月26日星期日

IIS7部署Silverlight5应用程序

sl部署比开发还麻烦,还好在网上找到这篇帖子,基本解决了遇到的所有问题:
 
http://www.cnblogs.com/sonce/archive/2011/03/04/1970803.html
 

2014年1月22日星期三

Using the AutoCompleteBox

The auto-complete box is a mix of a normal text box that allows the user to type in arbitrary text, and the drop-down list feature of a combo box that provides a fixed set of entries the user can select from. You're most likely using a control like this every day; for example, search engines like Bing and other web sites use these controls to provide a list of suggestions you can pick from without having to finish typing the full term, or they even provide a list of terms you entered previously to make repeated entries more comfortable for you.

2014年1月9日星期四

Promotion, SEO, Traffic and Advertising

Promotion, SEO, Traffic and Advertising

主页面不显示问题解决办法

问题: 当运行时 MainPage 停在 100% 不出现主页面
解决: 非常简单, Build->Clean Solution 重新编译整个Solution, 问题解决

2014年1月8日星期三

entity framework 4.1 - Should a Repository return IEnumerable , IQueryable or List? - Stack Overflow

up vote 3 down vote favorite
1
I'd like to make my application as flexible as possible, but not dig myself into a hole by making my Interface too specific.
What is the best object type for a repository? IEnumerable, IQueryable, or List?
The technologies I'm considering using are
  • Azure App Fabric Caching
  • Entity Framework 4.1
  • Possibly Windows Server AppFabric

c# - Returning IEnumerable vs IQueryable - Stack Overflow

up vote 186 down vote favorite
88
what is the difference between returning iqueryable vs ienumerable.
IQueryable<Customer> custs = from c in db.Customers
where c.City == "<City>"
select c;
IEnumerable<Customer> custs = from c in db.Customers
where c.City == "<City>"
select c;
Will both be deferred execution? When should one be preferred over the other?

C#中的委托和事件(续)


    C#中的委托和事件()

    引言
    如果你看过了 C#中的委托和事件 一文,我想你对委托和事件已经有了一个基本的认识。但那些远不是委托和事件的全部内容,还有很多的地方没有涉及。本文将讨论委托和事件一些更为细节的问题,包括一些大家常问到的问题,以及事件访问器、异常处理、超时处理和异步方法调用等内容。

C# 中的委托和事件

    C# 中的委托和事件

    引言
    委托 事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去的人每次见到委托和事件就觉得心里别(biè)得慌,混身不自在。本文中,我将通过两个范例由浅入深地讲述什么是委托、为什么要使用委托、事件的由来、.Net Framework中的委托和事件、委托和事件对Observer设计模式的意义,对它们的中间代码也做了讨论。

网页设计基础:Div+CSS布局入门教程

http://9host.cn/tech-CSS/20074221818567398.html

Regular Express 学习网站

2014年1月3日星期五

MVVM、MVVMLight、MVVMLight Toolkit之我见

    我想,现在已经有不少朋友在项目中使用了MVVMLight了吧,如果你正在做WPF,Silverlight,Windows Phone的开发,那么,你有十分必要的理由了解MVVM和MVVMLight。我写这篇文章的目的,是给大家做一个总结,以便更多的朋友了解并掌握MVVM。

Mvvm Light Toolkit for WPF/Silverlight系列之Command和Events(2)

这样就可以间接的将TextBoxMouseRightButtonDown事件绑定到Command

Silverlight MVVM 模式下与子窗体交互

Model View ViewModel(MVVM)是在 Silverlight WPF 项目开发中应用最多的结构模式,也是 Silverlight WPF 项目开发的最佳模式。本文的主要目的不是讲解 MVVM 模式,如果您不了解 MVVM 模式,可心参看这里和这里。目前已有很多 MVVM 框架可以用来简化 MVVM 开发,如 PrismSilverlightFXMvvmLightCaliburnSimple MVVM Toolkit等。

NHibernate初学者指南(21):开发中常见的错误(二)

使用一个模型读写操作

NHibernate初学者指南(3):创建Model 中我们已经介绍了一个域模型的概念。在后面文章的例子中也都使用了这个域读写以及更新数据。只要该域的复杂性有限或者我们构建的解决方案纯粹是一个forms-over-data类型的应用,这都是有意义的。

NHibernate初学者指南(20):开发中常见的错误(一)

本篇以及下一篇讨论开发人员在使用NHibernate开发中常见的一些错误。