- 博客(1)
- 资源 (22)
- 收藏
- 关注
原创 LINQ Group by 多列值在C#与VB.Net上写法的区别
现有这样一个LIST,需要根据Age和Sex两列进行Group by 分组操作: var empList =new List { new Employee {ID = 1, FName = "John", Age = 23, Sex = 'M'}, new Employee {ID = 2, FName = "Mary", Age = 25, Sex = 'F'},
2012-06-04 14:12:20 21548 4
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关注的人