什么是VC#中的WPF/WCF [英] what is WPF / WCF in VC#

查看:112
本文介绍了什么是VC#中的WPF/WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我想知道WPF和WCF是什么,两者之间的区别?而且我需要上一课(应用程序,文章...)以了解更多信息...

谢谢

Hi I want to know what is WPF and WCF ,and the difference between the two? and i need a lesson (Applications,Articles...) to understand it more...

thank you

推荐答案

我认为您要提出的问题是什么是WPF和WCF,为什么要使用它们?"

WPF(Windows Presentation Foundation)是Windows Forms之后的下一代桌面应用程序开发. Windows Forms的基础是设计要在GDI +中运行的应用程序,尽管这是对GDI的巨大改进,但它并不真正适合于开发看起来不像普通Windows应用程序的应用程序.使用WPF,可以轻松地(很好,当您掌握了它之后就很容易)将出色的应用程序,流畅的动画,3D界面等组合在一起.

WPF被设计为声明式开发环境.这样,我们的意思是可以使用称为XAML(XML应用标记语言)的XML形式以描述性方式设计接口.将此与卓越的数据绑定引擎结合在一起,您将拥有一个非常强大的开发环境.

虽然您可以获得运行在Web浏览器中的WPF版本,但Microsoft并没有真正推荐此功能(不建议使用该功能),而建议使用基于托管浏览器的称为Silverlight(以XML Pitstop所有者David Silverlight的名字命名)真是个好人).

转到WCF(Windows Communication Foundation).在.NET开发的过去,系统之间的通讯是使用远程处理和Web服务之类的技术进行的.事实是,这些技术可能很难对付代码,并且您无法轻松地重用为通过TCP进行通信而开发的代码以在HTTP上工作而不包装它.引入WCF是为了使进程间/应用程序间的通信更加容易,其中包括能够像通过Pipes一样通过HTTP重复使用相同的代码来通过TCP进行通信.

为了实现这一点并有效地管理端点,WCF驻留在一个称为ABC的概念堆栈上.

A代表地址-您要与之通信的服务的地址是什么?
B代表Binding-这是通信绑定机制.
C代表合同-合同是使您能够从两面知道应用程序如何工作的工具.

我希望这可以帮助您至少了解它们的本质,并鼓励您进一步研究.
I think that the question you are asking is "What are WPF and WCF, and why would I use them?"

WPF (Windows Presentation Foundation), is the next generation of desktop application development after Windows Forms. Windows Forms was based around designing applications to run in GDI+ which, while being a vast improvement on GDI, was not really suited to developing applications that didn''t look like the plain-vanilla windows applications. With WPF, it''s easy (well, easy when you''ve mastered it) to pull together applications that stand out, with fluid animations, 3D interfaces and so on.

WPF is designed to be a declarative development environment. By this, we mean that the interface can be designed in a descriptive fashion using a form of XML called XAML (XML Application Markup Language). Combining this with a superior data binding engine, and you have a very powerful development environment.

While you can get a version of WPF that runs inside a web browser, Microsoft don''t really recommend this (having deprecated support for it) in favour of a managed browser based implementation called Silverlight (named after XML Pitstop owner David Silverlight - a genuinely nice guy).

On to WCF (Windows Communication Foundation). In the olden days of .NET development, communication between systems was performed using techniques such as remoting and web services. The thing is, these technologies could be tricky to code against, and you couldn''t easily reuse code that was developed to communicate over TCP to work over HTTP without wrapping it. WCF was introduced to make inter-process/inter-application communication a lot easier, including being able to reuse the same code to communicate over TCP as you could over HTTP, as over Pipes.

In order to achieve this and manage the endpoints effectively, WCF resides on a conceptual stack known as ABC.

A stands for Address - what is the address of the service you are tying to communicate with?
B stands for Binding - this is the communication binding mechanism.
C stands for Contract - the contract is the bit that allows you to know on both sides of the wire how the application works.

I hope that this helps you get at least a little flavour of what they are, and encourages you to investigate further.


这个问题的第一部分是有道理的(在区别"之前;请参阅我对问题的评论.

我认为问题在于提出问题的能力较弱.在这种情况下,这将使工作效率更高:
什么是Wikipedia,Google,CodeProject和StackOverflow.com?"
如果您提出要求并获得了很好的答案,就不需要像您原来的问题了!

—SA
First part of this Question makes some sense (before "the difference"; see my comment to the Question).

I think the problem is the weak formulation if the Question. This one would be much more productive in this case:
"What are Wikipedia, Google, CodeProject and StackOverflow.com?"
If you asked and got good Answers, the Questions like your original one would not be needed!

—SA


感谢Pete O''Hanlon先生的简短说明.
thank you Mr Pete O''Hanlon for this short and clear explication


这篇关于什么是VC#中的WPF/WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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