- 博客(1)
- 资源 (22)
- 收藏
- 关注
原创 LINQ TO XML 应用之 Win8 Metro 开发
Win8 Metro 开发,需要用到数据绑定 想到了LINQ TO XML 以下简单的例子说明如何加载XML--》读取XML--》页面绑定 1。 在项目根目录新建一文件夹,命名为XML,文件夹内放置一 Resource.xml 文件,格式如下: C0001 Comany 1 Introduction 1
2012-05-24 15:45:59 4727 2
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关注的人