学习WPF的建议? [英] Recommendations to learn WPF?

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

问题描述

当然......明显的答案:CodeProject和谷歌。



重点是......我想开始学习WPF。



我已经访问了WPF教程谷歌搜索中的第一个链接,但我不确定哪些是好的。由于我没有多少,我最好不要浪费我宝贵的业余时间(20个月大的女儿,我喜欢花时间)。



什么我试过了:



我将从以下开始:

www.wpf-tutorial.com [ ^ ]



https://www.tutorialspoint。 com / wpf / [ ^ ]



但我愿意接受意见和建议。

解决方案

如果你要学习WPF,UWP,Xamarin等,我不能强烈建议学习这些UI框架使用的数据绑定:数据绑定概述| Microsoft Docs [ ^ ]。关键是学习数据优先编程 - 即:使用数据,而不是控件。



这是一个开发人员专注于直接在控件上工作的例子通过解决方案使用的数据绑定来访问数据而不是数据本身:如何检查WPF datagrid复选框是否在按钮点击事件的所有行中被选中[ ^ ]



一旦理解了数据绑定,就学习MVVM。



一旦掌握了这两种设计模式,你就学会了所有这些UI框架的核心。 / blockquote>

如果您使用的是Windows 10,请使用UWP(类似于通用vs桌面WPF)。



使用C#和XAML开发通用Windows应用程序 - Microsoft Virtual Academy [ ^ ]


Of course... Obvious answers: CodeProject and google.

The point is... I would like to start learning WPF.

I have already visited the first links in the "WPF tutorial" google search, but I am not sure which ones are good. Since I don't have much, I would preferably not waste my precious spare time (20 months old daughter I love to spend time with).

What I have tried:

I am going to start with:
www.wpf-tutorial.com[^]
and
https://www.tutorialspoint.com/wpf/[^]

But I am open to opinions and recommendations.

解决方案

If you are going to learn WPF, UWP, Xamarin, etc, I can't recommend strongly enough to learn the Data Binding used by these UI frameworks: Data Binding Overview | Microsoft Docs[^]. The key is to learn Data First programming - ie: work with the data, not controls.

Here is an example where the dev was focusing on working directly on the control to access the data rather than on the data itself through data binding which the solution uses: How to check WPF datagrid checkbox is selected or not in all rows in button click event[^]

Once you understand Data Binding, then learn MVVM.

Once you master these two design patterns, you have learned the core of all of these UI frameworks.


If you're using Windows 10, go UWP (sort of a "universal" vs desktop WPF).

Developing Universal Windows Apps with C# and XAML – Microsoft Virtual Academy[^]


这篇关于学习WPF的建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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