Silverlight 5 in-depth understanding

Source: Internet
Author: User

650) this. width = 650; "style =" border-right-0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px "title =" image "border =" 0 "alt =" image "width =" 356 "height =" 119 "src =" http://www.bkjia.com/uploads/allimg/131228/1R5006212-0.png "/>

Silverlight 5 is supplemented and enhanced based on Silverlight 4.

  • Rich Media performance capabilities
  • Enhanced graphic display capability
  • Construct next-generation commercial applications
  • Enhanced trust model
  • Performance Improvement
  • Complete tools

Most of the enhancements are from online surveys.

Lhttp: // dotnet.uservoice.com/forums/4325-silverlight-feature-suggestions

650) this. width = 650; "style =" border-right-0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px "title =" image "border =" 0 "alt =" image "width =" 424 "height =" 481 "src =" http://www.bkjia.com/uploads/allimg/131228/1R500I05-1.png "/>

 

 

Silverlight 5 features

Complete tools

  • Debug data binding in XAML
  • Visual Studio Performance Analysis Tool
  • Support Visual Studio Team Test

Construct next-generation commercial applications

  • Enhanced Data Binding
  • Text rendering Enhancement
  • Double-click/Multi-click support
  • PivotViewer Control
  • Support for Postscript vector Printing

Media Enhancement

  • Remote Control and media command support
  • Video Playback Enhancement
  • Real-time sound effects

Work in trusted Mode

  • Multi-Window support
  • Unlimited File Access
  • Keyboard support in full screen mode
  • COM call support
  • P/Invoke access to unmanaged code

Image Enhancement

  • 3D graphic interface

Performance Improvement

  • Reduces network latency
  • Increase the speed of XAML resolution
  • 64-bit support

There are many more ......

 

Debug data binding in XAML

Previously, if Binding does not work normally, you must check the output window of Visual Studio to view the failure information. Create a ValueConverter and use it in Binding to check the passed value. It turns out that Path is wrong? 1.1. Try it ~~

Now, set a breakpoint for Binding in XAML and check the local window directly.

 

Visual Studio Performance Analysis Tool

Silverlight 5 provides a wide range of performance analysis tools, including CPU, memory, and thread competition.

 

Support Visual Studio Team Test

As shown in:

650) this. width = 650; "style =" border-right-0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px "title =" image "border =" 0 "alt =" image "width =" 694 "height =" 277 "src =" http://www.bkjia.com/uploads/allimg/131228/1R500G25-2.png "/>

 

Implicit plate emplate is supported.

The implicit ememplate sheet writes a unified template for some data used in the program. In ItemsControl, different templates can be used for different data.

 

Enhanced Data Binding

SL5 provides ICustomTypeProvider, which can define data types for data sources such as JSON. Binding. RelativeSource supports Ancestor, while Binding. UpdateSourceTrigger supports PropertyChanged. The Setter of Style supports Binding. In addition, SL5 provides DataContextChanged events and supports custom MarkupExtension.

 

RichTextBlock Control

The RichTextBlock control is suitable for displaying large text segments. You can select, copy, and freely layout the text, for example, arrange multiple columns for display or make the effect of text wrapping.

 

Text rendering Enhancement

SL5 supports adjusting the Character spacing, pixel alignment, and OpenType to improve the user's reading experience.

 

Double-click/Multi-click support

SL5 adds the ClickCount attribute, which can be used to determine the number of mouse clicks. Three mouse clicks are supported in the application. It should be noted that a trigger is a progressive behavior, and the event is clicked and double-clicked. Therefore, there must be no conflict in the event sequence. A proper example is to double-click a piece of text and select all text in three clicks.

 

PivotViewer Control

Beginning with SL5, javastviewer officially joined the Silverlight SDK. It uses the DeepZoom technology to display data.

Example: http://www.microsoft.com/silverlight/case-studies/

650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "title =" image "border =" 0 "alt =" image "height =" 298 "src =" http://www.bkjia.com/uploads/allimg/131228/1R50044P-3.png "/>

 

Postscript vector Printing

Postscript is a page description language that can be recognized by printers, but it must be supported by printers! The previous print method was bitmap printing, which was slow and memory consumption was high. In addition, the higher the resolution of the printer, the worse the performance. Therefore, it is only suitable for printing documents with several pages.

The emergence of Postscript vector printing solves this problem. Printer resolution has no impact on performance. You can print hundreds of pages of documents.

 

 

Remote Control and media command support

SL5 supports multimedia-controlled hardware devices, such as the XBOX 360 remote control, Media Center remote control, and multimedia buttons for laptops.

Among them, the UIElement. MediaCommand event can handle playback, pause, stop, forward, backward, Volume +/-, channel +/-, and other operations.

 

650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "title =" image "border =" 0 "alt =" image "height =" 504 "src =" http://www.bkjia.com/uploads/allimg/131228/1R5002495-4.png "/>

 

Video Playback Enhancement

SL5 supports hardware Decoding for H.264 video playback. Supports TrickPlay, including fast forward/return, and uses audio repair technology to restore the true tone at 2x fast forward. It also enhances the power control to prevent screen protection during video playback and allow the computer to sleep during video pause. In addition, SL5 provides DRM enhancement.

 

Real-time sound effects

Real-time sound effects are required for the most common applications and games. In the Silverlight 4 era, a lot of work and skills are required to reduce the sound latency. However, Silverlight 5 now provides the SoundEffect module in XNA, which can meet users' requirements for real-time sound effects. However, it also has restrictions. For example, the audio file must be a PCM encoded WAV file ). For example, for the best effect, there is a limit on the bit rate of the audio file.

 

Silverlight 5 trust mode

The trust mode of SL5 includes the trust mode of local applications and the trust mode of browser applications. At the same time, trusted applications can be specified through group policies.

 

Multi-Window support

In the OOB program of Silverlight 4, we only have one window. Although Popup and ChildWindow can be used for simulation, they are not real windows and cannot be moved outside the main window.

In the OOB program of Silverlight 5, we can create multiple operating system windows to customize the window shape and support dual screens.

 

Benefits of other work in trust mode

  • Unlimited File Access: In the past, only my documents can be accessed, and now all files can be accessed.
  • Keyboard support in full screen mode: Run in full screen in the browser and receive all keyboard messages
  • Support for COM calls: access other COM plug-ins in the browser
  • P/Invoke access to unmanaged code: in a local application, you can call Windows API

 

3D graphic interface

3D in Silverlight 4 is actually Projection: 3D Projection transformation.

Silverlight 5 3D is an XNA-based 3D engine that supports textures, textures, and lighting, and supports vertices and pixel pasters ". 3D Model import is also supported.

What can "real 3D" do? Let's take a look ~

650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "title =" image "border =" 0 "alt =" image "height =" 912 "src =" http://www.bkjia.com/uploads/allimg/131228/1R50042F-5.png "/>

 

Resources

  • Silverlight 5 RC is available for download
  • Silverlight 5 official version released before the end of the year
  • This course PPT and all demos: TechEd2011 Silverlight 5 courseware (WEB-300-8)

This article from the "grape city control blog" blog, please be sure to keep this source http://powertoolsteam.blog.51cto.com/2369428/697302

Related Article

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.