Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between WCF and WPF?

Tags:

wcf

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

like image 912
Iti Tyagi Avatar asked Sep 11 '12 05:09

Iti Tyagi


2 Answers

WCF = Windows COMMUNICATION Foundation

WPF = Windows PRESENTATION Foundation.

WCF deals with communication (in simple terms - sending and receiving data as well as formatting and serialization involved), WPF deals with presentation (UI)

like image 164
John Gathogo Avatar answered Oct 09 '22 20:10

John Gathogo


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

Windows Communication Foundation (WCF) is a framework for creating service oriented applications. (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.

like image 20
Fredy Klakson Avatar answered Oct 09 '22 18:10

Fredy Klakson