启动 WPF MVVM.使用框架? [英] Starting WPF MVVM. Use a framework?

查看:16
本文介绍了启动 WPF MVVM.使用框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在堆栈溢出中查看了一些问题,例如 this &mix10 构建自己的 mvvm 框架

I took a look at some questions here at stack overflow like this & mix10 building your own mvvm framework

我想知道作为初学者是否最好从头开始(但我从视频中听说,不推荐)或使用框架

I wonder if as a beginner its better to start from scratch (but I heard from the vid, its not recommended) or use a framework

还有哪个更适合作为初学者学习的框架?我发现在阅读了很多文章甚至教程视频后,我仍然很迷茫.我可能到处都有零件,但仍然没有.

also which is more suited as a beginner framework to learn? I find that after reading quite a few articles or even tutorial videos I am still quite lost. I may get parts here and there but still not there.

caliburn micro 易于学习的小型框架?或者来自微软的东西,比如 MVVM 工具包或 Unity/Prism(顺便说一句,所有这些 MS 框架的差异是什么)?MVVM 灯?

caliburn micro a smaller framework easy to learn? or something from microsoft like MVVM toolkit or Unity/Prism (whats the diff bet all this MS frameworks btw)? MVVM Light?

推荐答案

我的 $0.02 :

几周前我开始使用 WPF/Mvvm 模式,我绝对推荐的一条路线是首先启动一个测试项目,阅读大量关于 mvvm 的内容,并尝试自己实现它(即使它只是通过使用其他人的部分内容).实现一些东西,多读一些,回去修改一些东西,然后多读一些.

I've started using WPF / the Mvvm-pattern a few weeks ago and one route I can definitely recommend is first starting a test-project, reading a lot about mvvm, and trying to implement it yourself (even if it's just by using parts of other people's stuff). Implement something, read some more, go back and change stuff, and then read some more.

在前 2 周内执行此操作,您将了解它的实际情况,您会看到一些问题并找到一些解决方案,等等.基本上,这将使您掌握 mvvm-idea,并为您提供一些实践经验.

Do this for the first 2 weeks and you'll get an idea of what it's actually all about, you'll see some problems and find some solutions, etcetera. Basicly this will get the mvvm-idea in your fingers and give you some hands-on experience.

然后,如果您愿意,您可以丢弃您的测试项目,决定是否真的开始编写您自己的东西或使用现有的工具包,并且可能对这种方式有更多的欣赏和理解现有工具包有效.

Then if you like you can throw away your test-project, decide wether or not to really start writing your own stuff or using an existing kit, and probably have more appreciation and understanding for the way existing kits work.

我最终没有使用现有的工具包,而是使用我自己的非常简单的实现,因为我的项目不需要太多复杂性,但我确实对我在互联网上讨论过的一些实现得到了更多的赞赏.

I ended up not using an existing kit but my own very simple implementation since I didn't need much complexity for my project, but I did get a lot more appreciation for some implementations I've seen discussed on the interwebs.

当我谈论两周"时,我的意思是两周的业余时间",大约 25 个实际小时 ;-)

When I talk about "two weeks" I mean "two weeks of sparetime" which is about 25 real hours ;-)

这篇关于启动 WPF MVVM.使用框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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