简体   繁体   English

WCF和WPF有什么区别?

[英]What is the difference between WCF and WPF?

I am a naive developer and I am building up my concepts, I was asked to create a sample application in wcf, and so I am asking a bit subjective question here. 我是一个幼稚的开发人员,正在建立自己的概念,有人要求我在wcf中创建一个示例应用程序,因此我在这里提出了一些主观的问题。 I want to know the diffrence and functionality of the above two, in which terms we prefer one over other? 我想知道以上两个方面的区别和功能,在哪些方面我们更喜欢另一个?

WCF = Windows COMMUNICATION Foundation WCF = Windows通讯基础

WPF = Windows PRESENTATION Foundation. WPF = Windows演示基础。

WCF deals with communication (in simple terms - sending and receiving data as well as formatting and serialization involved), WPF deals with presentation (UI) WCF处理通讯(简单来说-发送和接收数据以及涉及格式和序列化),WPF处理表示(UI)

The quick answer is: Windows Presentation Foundation (WPF) is basically a way of displaying user interface. 快速的答案是:Windows Presentation Foundation(WPF)基本上是一种显示用户界面的方法。 (see this ) (参见

Windows Communication Foundation (WCF) is a framework for creating service oriented applications. Windows Communication Foundation(WCF)是用于创建面向服务的应用程序的框架。 (see this ) (参见

As for which one you should use, it depends on your requirement. 至于您应该使用哪一个,则取决于您的要求。 Usually an application written in WPF, ASP.NET..etc called the WCF service to do some processing at the server-side and the service returns the result to the application that called it. 通常,用WPF,ASP.NET..etc等程序编写的应用程序调用WCF服务,以便在服务器端进行某些处理,然后该服务将结果返回给调用它的应用程序。

  • WPF is your FrontEnd (presentation: .htm, .xaml & .css, ..) WPF是您的FrontEnd(演示文稿:.htm,.xaml和.css,..)
  • WCF is your BackEnd app (services that involve server connections to acquire data for you to deliver to the FrontEnd to present). WCF是您的BackEnd应用程序(涉及服务器连接以获取数据以供您传送到FrontEnd呈现的服务)。 You can write WCF for RESTful model. 您可以为RESTful模型编写WCF。
  • WebAPI is for building services of RESTful model for 4.+ frameworks. WebAPI用于为4. +框架构建RESTful模型的服务。

Windows Presentation Foundation (WPF) Windows Presentation Foundation(WPF)

Next-Generation User Experiences. 下一代用户体验。 The Windows Presentation Foundation, WPF, provides a unified framework for building applications and high-fidelity experiences in Windows Vista that blend application UI, documents, and media content. Windows Presentation Foundation WPF为在Windows Vista中构建应用程序和高保真体验提供了一个统一的框架,该框架融合了应用程序UI,文档和媒体内容。 WPF offers developers 2D and 3D graphics support, hardware-accelerated effects, scalability to different form factors, interactive data visualization, and superior content readability. WPF为开发人员提供2D和3D图形支持,硬件加速的效果,对不同形状尺寸的可伸缩性,交互式数据可视化以及出色的内容可读性。

Windows Communication Foundation (WCF) Windows Communication Foundation(WCF)

Windows Communication Foundation (WCF) is Microsoft's unified programming model for building service-oriented applications. Windows Communication Foundation(WCF)是Microsoft的统一编程模型,用于构建面向服务的应用程序。 It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments. 它使开发人员能够构建安全,可靠,可交易的解决方案,这些解决方案可跨平台集成并与现有投资互操作。

Basically, if you are developing a client- server application. 基本上,如果要开发客户端服务器应用程序。 You may use WCF -> in order to make connection between client and server, WPF -> as client side to present the data. 您可以使用WCF->以在客户端和服务器之间建立连接,WPF->作为客户端来呈现数据。

WCF = Windows Communication Foundation is used to build service-oriented applications. WCF = Windows Communication Foundation用于构建面向服务的应用程序。 WPF = Windows Presentation Foundation is used to write platform-independent applications. WPF = Windows Presentation Foundation用于编写与平台无关的应用程序。

Windows communication Fundation(WCF) is used for connecting different applications and passing the data's between them using endpoints. Windows Communication Fundation(WCF)用于连接不同的应用程序,并使用端点在它们之间传递数据。

Windows Presentation Foundation is used for designing rich internet applications in the format of xaml. Windows Presentation Foundation用于设计xaml格式的富Internet应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM