MVVM模式实施问题 [英] MVVM Pattern implementation problem

查看:89
本文介绍了MVVM模式实施问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用MVVM模式在WPF中创建一个小程序,但不知道如何实现.

我有一个组合框和datagrid,并希望在组合框选择的基础上填写数据网格,例如:combobox包含患者姓名和datagrid,显示组合框中所选患者的详细信息.
我是wpf和mvvm的新手,所以代码会很有帮助.

在此先感谢

解决方案

为什么要使用您不理解的模式?您希望获得什么?我建议您学习WPF(不管我是否喜欢它,它是否被广泛使用并且可能永远不会被使用),并且在知道了您正在使用的技术足以专注于其后,担心设计模式

I want to create a small programme in WPF using MVVM pattern,but not know how to implement it.

I have a combobox and datagrid and want to fill the datagrid on the basis of combobox selection ex:combobox contains the patient name and datagrid show the details of selected patient in combobox.
I am new bee to wpf and mvvm so code would be of great help.

Thanks in advance

解决方案

Why do you want to use a pattern that you don''t understand ? What do you hope to gain ? I''d recommend learning WPF ( or not, it''s not widely used and probably never will be, although I like it ), and worrying about design patterns after you know the technology you''re using well enough to focus on using it differently to suit a pattern.


这篇关于MVVM模式实施问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆