wpf WCF和WPF有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12363506/
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 23:30:59  来源:igfitidea点击:

What is the difference between WCF and WPF?

wpfwcf

提问by Iti Tyagi

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. I want to know the diffrence and functionality of the above two, in which terms we prefer one over other?

我是一个天真的开发人员,我正在构建我的概念,我被要求在 wcf 中创建一个示例应用程序,所以我在这里问了一个有点主观的问题。我想知道以上两者的区别和功能,在哪些方面我们更喜欢一个?

回答by John Gathogo

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)

回答by Fredy Klakson

The quick answer is: Windows Presentation Foundation (WPF) is basically a way of displaying user interface. (see this)

快速回答是:Windows Presentation Foundation (WPF) 基本上是一种显示用户界面的方式。(见这个

Windows Communication Foundation (WCF) is a framework for creating service oriented applications. (see this)

Windows Communication Foundation (WCF) 是一个用于创建面向服务的应用程序的框架。(见这个

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.. 等编写的应用程序调用 WCF 服务在服务器端做一些处理,该服务将结果返回给调用它的应用程序。

回答by Jenna Leaf

  • WPF is your FrontEnd (presentation: .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). You can write WCF for RESTful model.
  • WebAPI is for building services of RESTful model for 4.+ frameworks.
  • WPF 是您的前端(演示文稿:.htm、.xaml 和 .css、..)
  • WCF 是您的后端应用程序(涉及服务器连接以获取数据以供您交付给前端以呈现的服务)。您可以为 RESTful 模型编写 WCF。
  • WebAPI 用于为 4.+ 框架构建 RESTful 模型的服务。

回答by ashu

Windows Presentation Foundation (WPF)

Windows 演示基础 (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. WPF offers developers 2D and 3D graphics support, hardware-accelerated effects, scalability to different form factors, interactive data visualization, and superior content readability.

下一代用户体验。Windows Presentation Foundation (WPF) 提供了一个统一的框架,用于在 Windows Vista 中构建应用程序和高保真体验,将应用程序 UI、文档和媒体内容混合在一起。WPF 为开发人员提供 2D 和 3D 图形支持、硬件加速效果、不同外形的可扩展性、交互式数据可视化和卓越的内容可读性。

Windows Communication Foundation (WCF)

Windows 通信基础 (WCF)

Windows Communication Foundation (WCF) is Microsoft's unified programming model for building service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments.

Windows Communication Foundation (WCF) 是 Microsoft 用于构建面向服务的应用程序的统一编程模型。它使开发人员能够构建跨平台集成并与现有投资互操作的安全、可靠、可交易的解决方案。

回答by Ebru Güng?r

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 -> 作为客户端来呈现数据。

回答by Jaskaran Singh

WCF = Windows Communication Foundation is used to build service-oriented applications. WPF = Windows Presentation Foundation is used to write platform-independent applications.

WCF = Windows Communication Foundation 用于构建面向服务的应用程序。WPF = Windows Presentation Foundation 用于编写独立于平台的应用程序。

回答by Hema

Windows communication Fundation(WCF) is used for connecting different applications and passing the data's between them using endpoints.

Windows 通信基础 (WCF) 用于连接不同的应用程序并使用端点在它们之间传递数据。

Windows Presentation Foundation is used for designing rich internet applications in the format of xaml.

Windows Presentation Foundation 用于设计 xaml 格式的富 Internet 应用程序。