在Wpf中使用MVVM Pattern创建一个简单的表单 [英] Creating a simple form using MVVM Pattern in Wpf
本文介绍了在Wpf中使用MVVM Pattern创建一个简单的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Wpf中使用MVVM模式创建一个简单的表单。我需要添加名称,出生日期,电话号码,Country.Need添加两个按钮,即添加,保存。对于所有这些过程,我需要创建快捷键。
问候
Balamurugan
Hi,
How to create a simple form using MVVM Pattern in Wpf.I Need to add Name,Date Of Birth,Phone no,Country.Need to add Two buttons namely Add, Save.For all these process i need to create the shortcut key.
Regards
Balamurugan
推荐答案
没有意义。首先,WPF窗口不是表单。更重要的是,MVVM不是用于创建表单或窗口的模式。 MVVM是这样的:
http://en.wikipedia.org/wiki/MVVM [ ^ ]。
即使你使用MVVM,你也可以用一些通常的方式创建一个窗口。 :-)
-SA
It makes no sense. First, WPF windows are not "forms". More importantly, MVVM is not a pattern for creating forms or windows. MVVM is this:
http://en.wikipedia.org/wiki/MVVM[^].
Even if you use MVVM, you create a window in some "usual" ways. :-)
—SA
浏览这些链接....你会得到的一些想法...
WPF / MVVM快速入门教程 [ ^ ]
http://www.c- sharpcorner.com/UploadFile/raj1979/simple-mvvm-pattern-in-wpf/ [ ^ ]
Go through these links ....you will get some idea...
WPF/MVVM Quick Start Tutorial[^]
http://www.c-sharpcorner.com/UploadFile/raj1979/simple-mvvm-pattern-in-wpf/[^]
这是另一篇关于codeproject的文章; MVVM Pattern Made Simple [ ^ ]
Here is another article on codeproject; MVVM Pattern Made Simple[^]
这篇关于在Wpf中使用MVVM Pattern创建一个简单的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文