Silverlight 5 has made some additions and enhancements on the basis of Silverlight 4
- Rich media expression ability
- Enhanced graphic presentation
- Building Next Generation Business Applications
- Enhancement of trust mode
- Performance improvement
- Perfect tools
Most of these enhancements come from online surveys
l http://dotnet.uservoice.com/forums/4325-silverlight-feature-suggestions
Silverlight 5 Function Introduction
Perfect tools
- Debug data binding in XAML
- Visual Studio Performance Analysis Tools
- Support for Visual Studio Team Test
Building Next Generation Business Applications
- Data binding enhancements
- Text rendering enhancement
- Double click/multi click support
- PivotViewer Control
- Postscript vector printing support
Media enhancements
- Remote control and media command support
- Video playback enhancement
- Real time sound effect
Working in trust mode
- Multi window support
- Unrestricted file access
- Keyboard support in full screen mode
- COM call support
- P/Invoke access unmanaged code
Graphics enhancements
Performance improvement
- Reduce network latency
- Improve XAML parsing speed
- 64 bit support
There are many more
Debug data binding in XAML
Previously, if Binding did not work properly, you must check the output window of Visual Studio to see the failure information. Then create a ValueConverter and use it in Binding to check the incoming and outgoing values. It turns out that Path is wrongly written? Try bit by bit
Now, set a breakpoint for Binding in XAML and check the local window directly.
Visual Studio Performance Analysis Tools
Silverlight 5 provides a wealth of performance analysis tools, including CPU, memory, thread race, and so on.
Support for Visual Studio Team Test
As shown in the figure below:
Support implicit DataTemplate
The implicit DataTemplate sheet is to write a unified template for certain data used in the program. In ItemsControl, different templates can be used for different data.
Data binding enhancements
SL5 provides ICustomTypeProvider, which can specify data types for JSON and other data sources. Binding.RelativeSource supports Ancestor, while Binding UpdateSourceTrigger supports PropertyChanged. Style Setters support Binding. In addition, SL5 also provides DataContextChanged events and supports the ability to customize MarkupExtension.
RichTextBlock Control
The RichTextBlock control is suitable for rendering large pieces of text. You can select, copy, and layout the text freely, such as arranging it into multiple columns or creating text wrapping effects.
Text rendering enhancement
SL5 supports character spacing adjustment, pixel alignment and OpenType fonts 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 applications. It should be noted that three mouse clicks is a progressive behavior, and will go through mouse click and double click events. Therefore, there must be no conflict in the sequence of events. A suitable example is to double click a piece of text and triple click all the text.
PivotViewer Control
Since SL5, PivotViewer has officially joined the Silverlight SDK. It uses DeepZoom technology to display data.
Example: http://www.microsoft.com/silverlight/case-studies/
Postscript vector printing
Postscript is a page description language recognized by printers, but it needs printer support! The previous printing method was bitmap printing, which was slow and consumed a lot of memory. The higher the resolution of the printer, the worse the performance. Therefore, it is only suitable for printing documents with a few pages of content.
Postscript vector printing solves this problem. The printer resolution has no impact on performance, and hundreds of pages of documents can be printed.
Remote control and media command support
SL5 supports hardware devices for multimedia control, such as XBOX 360 remote control, Media Center remote control multimedia button of laptop, etc.
Where UIElement The MediaCommand event can handle playback, pause, stop, forward, backward, volume+/-, channel+/-, and other operations.
Video playback enhancement
SL5 supports hardware decoding of H.264 video playback. It supports TrickPlay, including fast forward/rewind, and the use of audio repair technology to restore the true tone when double fast forward. It also enhances the power control, and can handle the prohibition of screen saver when playing video, and allow the computer to go to sleep when pausing video. In addition, SL5 also provides DRM enhancements.
Real time sound effect
The most common applications and games require real-time sound effects. In the Silverlight 4 era, we have done a lot of work to reduce the delay of sound, which requires a lot of skills. But now, Silverlight 5 provides the SoundEffect module in XNA, which can meet users' requirements for real-time sound effects. However, it also has limitations. For example, the sound file must be PCM encoded (usually WAV file). For another example, for the best effect, there are limits on the bit rate of sound files.
Silverlight 5 Trust Mode
The SL5 trust modes include: local application trust mode and browser application trust mode. At the same time, trusted applications can be specified through group policy.
Multi window support
In Silverlight 4's OOB program, we only have one window. Although Popup and ChildWindow can be used to simulate, they are not real windows and cannot be moved outside the main window.
In the OOB program of Silverlight 5, we can create windows of multiple operating systems, customize the shape of the window, and support dual screens.
Benefits of other work in trust mode
- Unlimited file access: Previously, you can only access My Documents, but now you can access all files.
- Keyboard support in full screen mode: run full screen in the browser and receive all keyboard messages
- COM call support: you can access other COM plug-ins in the browser
- P/Invoke access to unmanaged code: In local applications, you can call the Windows API
3D graphics interface
The 3D of Silverlight 4 is actually a Projection: 3D projection transformation.
Silverlight 5's 3D is an XNA based 3D engine that supports mapping, texture, lighting, and "true 3D" of vertex shaders and pixel shaders. It also supports 3D model import function.
What can "True 3D" do? Look below
resources
This article is from“ Grapevine Control Blog ”Blog, please keep this source http://powertoolsteam.blog.51cto.com/2369428/697302