WPF 示例应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/244786/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:44:22  来源:igfitidea点击:

WPF sample applications

wpfsample

提问by

Are there any WPF sample applications that showoff the 'coolness' of WPF?

是否有任何 WPF 示例应用程序展示了 WPF 的“酷”?

I'm hoping to see some examples of the UI capabilities etc., and general structure and best practices.

我希望看到 UI 功能等的一些示例,以及一般结构和最佳实践。

(oh, and the install shouldn't be too elaborate hehe)

(哦,安装不应该太复杂呵呵)

回答by cplotts

Family.Showis a great end-to-end reference sample ... done by Vertigo.

Family.Show是一个很棒的端到端参考样本……由Vertigo完成。

I believe that Microsoft commissioned this sample application in order to demonstrate the power of WPF. It definitely shows off some best practices (e.g. how to skin an app, etc.).

我相信微软委托这个示例应用程序是为了展示 WPF 的强大功能。它绝对展示了一些最佳实践(例如如何为应用程序设置外观等)。

回答by codeConcussion

I don't know about the "coolness" factor, but Scott Hanselman has an application called Baby Smash.

我不知道“酷”因素,但 Scott Hanselman 有一个名为Baby Smash的应用程序。

It's an application that takes over your desktop and allows babies to smash the keyboard to make shapes and play sounds. Again, probably not that "cool". However, Hanselman used this app to learn WPF himself. He hacked it together and put the code on CodePlex. He then invited those who knew WPF much better than himself to refactor it. All the code is available so you can see how it was hacked together and then compare it to the refactored expert version.

这是一个应用程序,可以接管您的桌面,并允许婴儿砸键盘来制作形状和播放声音。同样,可能不是那么“酷”。但是,Hanselman 使用此应用程序自己学习了 WPF。他将其破解并将代码放在 CodePlex 上。然后他邀请那些比他更了解 WPF 的人重构它。所有代码都可用,因此您可以查看它是如何被黑客攻击的,然后将其与重构的专家版本进行比较。

Pretty nice if you're looking to actually learn WPF.

如果您想真正学习 WPF,那就太好了。

回答by Artur Carvalho

Have a look at this: WPF real world apps.

看看这个:WPF real world apps

Cheers

干杯

回答by Artur Carvalho

I would check out CodeProject.com, there are dozens if not hundreds of sample apps for WPF. Some of which are really cool.

我会查看 CodeProject.com,WPF 有数十个甚至数百个示例应用程序。其中一些真的很酷。

回答by Keith Nicholas

With expression blend there are some sample apps that are pretty cool

使用表达式混合,有一些非常酷的示例应用程序

回答by cplotts

If it is coolnessyou are after, than I think GPU rendered effects are amazing. Check out the WPF Pixel Shader Effects Library.

如果你追求的是酷感,那么我认为 GPU 渲染效果是惊人的。查看WPF 像素着色器效果库

Anything by David Teitlebaumfrom Microsoft is coolas well. Check out this videoand then go download a couple of the sample apps from Adam Kinney's blog post... especially the layered orb sample app.

来自 Microsoft的 David Teitlebaum 的任何东西很酷观看视频,然后从 Adam Kinney 的博客文章中下载几个示例应用程序……尤其是分层 orb 示例应用程序。

Mouth dropping, I'd say.

我会说,流口水。

回答by Abdulsattar Mohammed

I've started a project at Codeplex, IncEditorthat uses WPF, MVVM and MEF. I think this should be able to give a complete picture of MVVM.

我在Codeplex, IncEditor开始了一个使用 WPF、MVVM 和 MEF 的项目。我想这应该能够给出一个完整的MVVM图景。

回答by jbe

You might be interested in the sample applications of the WPF Application Framework (WAF). They show:

您可能对WPF 应用程序框架 (WAF)的示例应用程序感兴趣。他们展示:

  • View composition

  • UI Workflow (Wizards)

  • Command binding / Shortcut Keys

  • MVVM pattern, Unit Testing

  • Validation

  • Entity Framework

  • Open/Save FileDialog

  • Print Preview / Print Dialog

  • Localization

  • 查看构图

  • UI 工作流(向导)

  • 命令绑定/快捷键

  • MVVM 模式,单元测试

  • 验证

  • 实体框架

  • 打开/保存文件对话框

  • 打印预览/打印对话框

  • 本土化

回答by Sunil

The Best is here:
http://blogs.msdn.com/b/tims/archive/2007/06/13/wpf-hands-on-lab-build-an-outlook-2007-ui-clone.aspx
It is a hands-on lab that demonstrates the steps to create a user interface for business applications using WPF and Expression Blend.

最好的在这里: 这是一个动手实验,演示了使用 WPF 和 Expression Blend 为业务应用程序创建用户界面的步骤。
http://blogs.msdn.com/b/tims/archive/2007/06/13/wpf-hands-on-lab-build-an-outlook-2007-ui-clone.aspx

Have a nice day.

祝你今天过得愉快。