- 博客(1)
- 资源 (22)
- 收藏
- 关注
原创 js 正则 为url添加http标识
今天逛 stackoverflow 时,看到这样一个问题: 有这样一个JS 字符串: http://www.google.com www.google.com code.google.com http://code.google.com/hosting/search?q=label%3aPython 需要为没有http头的URL添加http,有的保持不变。结果如下: 1: http
2013-07-17 11:23:49 8803 3
MVVM Demo for WPF
Introduction
Having helped alot of people on the MSDN Forum in the WPF section, I tend to see alot of people who fail to exploit the benefits of DataBinding in WPF, and not enough people are aware of the benefits of the MVVM pattern, which will be the main purpose of this lesson. To learn how to setup a basic MVVM pattern for an application.
What is MVVM ?
MVVM stands for :
•Model
•View
•ViewModel
Model - The model is an object model. In this case a class called Employee.
View - The view is the UI ( User Interface ), which creates a visualization of the objects in the ViewModel, in this case MainWindow.xaml
ViewModel - The ViewModel will be the layer in this application that handles all the logic and the Employee objects, this is the layer that the View will DataBind to.
2012-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人