What is the relationship between Silver Light, WPF and XAML?
Sapna Malik
Silver Llight is supported on different platforms as its a browser plugin. But WPF is supported only on WINDOWS platform.
This XML file can be read by WPF framework or Silver light framework for rendering. Microsoft first developed WPF and they used XAML files to describe the UI elements to the WPF framework. Microsoft then extended WPF and made WPF/e which helped to render the UI in the browser. WPF/e was the code name for Silver Light. Later Microsoft launched Silver Light officially. So the XAML just defines the XML structure to represent the UI elements. Both the frameworks i.e. WPF and Silverlight then reads the UI elements and renders the UI elements in the respective platform.
Silverlight and Windows Presentation Foundation (WPF) are 2 different products from Microsoft, but has lot of overlap. Silverlight is a sub set of WPF in terms of features and functionality.Silverlight is a Microsoft technology, competing with Adobes Flash and is meant for developing rich browser based internet applications.WPF is a Microsoft technology meant for developing enhanced graphics applications for desktop platform. In addition, WPF applications can be hosted on web browsers which offers rich graphics features for web applications. Web Browser Appliactions (WBA) developed on WPF technology uses XAML to host user interface for browser applications. XAML stands for eXtended Application Markup Language which is a new declarative programming model from Microsoft. XAML files are hosted as descrete files in the Web server, but are downloaded to the browsers and converted to user interface by the .NET runtime in the client browsers.WPF runs on .NET runtime and developers can take advantage of the rich .NET Framework and WPF libraries to build really cool windows applications. WPF supports 3-D graphics, complex animations, hardware acceleration etc.
http://kalitinterviewquestions.blogspot.com/
Microsoft Silverlight is a Browser plugin for running web.Its 5MB download and contains compact version of Framework class library and CLR.Silverlight pages can be distinguished into UI and codebehind just like asp.net pages.Silverlight UI pages are written in XAML while code behind pages can use any Framework language like C# or VB.NET.
XAML (Xentensible Mark up Language) is XML dialect that uses tags and attributes to define User Interface.
WPF (Windows presentation foundation) is used to create Windows applications.