Difference between component and controls in silverlight :
Component is a class that implements the System.ComponentModel.IComponent interface or that derives directly or indirectly from a class that implements IComponent. In programming, the term component is generally used for an object that is reusable and can interact with other objects. A .NET Framework component satisfies those general requirements and additionally provides features such as control over external resources and design-time support.Design-Time SupportHosting a ComponentMarshaling a ComponentControlA control is a component that provides (or enables) user-interface (UI) capabilities. The .NET Framework provides two base classes for controls: one for client-side Windows Forms controls and the other for ASP.NET server controls. These are System.Windows.Forms.Control and System.Web.UI.Control. All controls in the .NET Framework class library derive directly or indirectly from these two classes. System.Windows.Forms.Control derives from Component and itself provides UI capabilities. System.Web.UI.Control implements IComponent and provides the infrastructure on which it is easy to add UI functionalityEvery control is a component, but the converse is not trueA container is a class that implements the System.ComponentModel.IContainer interface or derives from a class that implements this interface. A container logically contains one or more components that are called the container's child components.A site is a class that implements the System.ComponentModel.ISite interface or derives from a class that implements this interface. Sites are provided by a container to manage and communicate with its child components. Typically, a container and a site are implemented as a unit.
Windows Presentation Foundation (WPF)
Windows Presentation Foundation (WPF) provides a unified framework for building applications and high-fidelity experiences in Windows Vista that blend together application UI, documents, and media content, while exploiting the full power of the computer.
Provides classes for building UI, documents, and media
Use a single WPF programming model to write code once and deploy it as a standalone installed application or in a browser.
WPF features include:
v Client Profile enables faster redistribution with a smaller download
Ø 2D and 3D graphics and hardware accelerated effects
Ø Common file format (XAML) allowing designers and developers to collaborate
Ø Scalability to different form factors
Ø Controls, data binding and extensibility enable developers to quickly build high fidelity applications
Differences between WPF and Silverlight :
The binding system in WPF also supports input validation which is not offered in Silverlight. In WPF you can use the IDataErrorInfo interface. Another important difference between the two systems is that Silverlight does not support commands which will allow the view to directly consume the ViewModel functionality
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment