Silverlight, WPF, and XAML

Source: Internet
Author: User

Silverlight can be viewed as a simplified or lightweight version of WPF. Silverlight is based on browser plug-ins and runs in a browser. The server does not need to deploy any environment. The client only needs to install the runtime browser plug-in without installing. NET Framework 3.0. Therefore, the running environment of Silverlight is not limited by the operating system and browser type (more accurately, it is limited by a small number ). WPF can write WebProgramOr a desktop application can be directly compiled into a standalone. EXE file. You must install. NET Framework 3.0 when running WPF. This requires that the operating system running on WPF must be Windows Vista or Windows XP SP2.

In addition, as a lightweight version of WPF, Silverlight reduces many features than WPF.
For example, WPF supports binding triggers in XAML to trigger an animation, while Silverlight can only trigger an animation by hostingCodeOr JavaScript.
In addition, WPF directly supports 3D effects and 3D lens transformations, but Silverlight does not.

Silverlight, formerly known as WPF/E, is a subset of WPF everywhere.

due to the name relationship, WPF and WPF/e are always considered similar. In fact, apart from rendering the UI, the two use the common language XAML, which is essentially quite different. Even XAML has different meanings for WPF and Silverlight, and it cannot be considered a "common language" between the two.
for WPF, XAML is a way to change the. NET program language to XML. In other words, XAML is used on WPF, such as another programming language. Similar to C #, VB, and ironpython. So what XAML can do is C # and VB. But in turn, what C # and VB can do is that XAML may not be able to do it, because XAML is a language specially designed to work with development tools and has its own limitations, therefore, we must work with formal programming languages to complete a truly useful program.
however, with the current capabilities of XAML, we should be able to do what we can do with simple flash without relying on C # and VB. Therefore, Petzold, author of application = code + markup, will write the structure of this book as C # To write the WPF program first, and the latter half will introduce the XAML. Avoid misunderstanding of WPF = XAML.
XAML can also be used on WF, so it is not limited to WPF. If XAML is used, it is a big mistake to think that this is all about WPF!
however, for Silverlight, XAML is essentially close to SVG. XAML is used to describe the structure tree of the image. Then, it uses JavaScript to operate the tree representing the UI to achieve interaction. For Silverlight, XAML is like a group of tags used to expand html/CSS. Like in Firefox, JavaScript can be used to operate the images described by SVG to achieve multimedia effects.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.