Вы находитесь на странице: 1из 7

Synergetics-RIA using SilverLight Deep Dive

RIA Using Silverlight Deep Dive


Introduction
With the web development Technology maturing, RIAs (Rich Internet Applications) are preferred to by more and more people. After many years of silence, under the situation that Flash nearly dominates the Internet world, Microsoft is unwilling to lag far behind, against many deficiencies of the rival and quickly developed a so-called "Flash killer" technology-Silverlight. In the Case study, it will show the participant a Complete RIA development system based upon the popular Silverlight 4 technique, through which we are to explorer the typical routine and necessary skills in creating Silverlight based line-of-business applications. We are going to follow the development of software engineering to introduce aspects of the case in this problem. However, since this case still remains at a level on a simplified version, so for some modules, such as needs analysis and so on, will be simplified or be omitted.

Architecture Design

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Page 1of 7

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive

Course Content
Module 1 - Presentation Layer
SilverLight application UI is based on the same XAML technology introduced with WPF when .NET 3.0 was released. User interface layer (presentation layer) is mainly composed of XAML-formed Silverlight user controls embedded inside the ASP.NET page. XAML provides us with features for creating Rich User Interfaces with graphics and animation support. There are a lot of new features like styles, templates which lets us separate the UI definition in XAML file and keep the logic in a code behind file. In the XAML page design, the popular data source binding is utilized. In order to reduce as much as possible the coupling of the presentation layer and the business logic tier, we avoid directly using the XAML markup attribute attaching different events to the related handlers, but choose to use the code-behind class to achieve the attachments, which can be easily accomplished through the "+=" operator and the event delegate provided in C # language. This module covers the XAML features for creating rich UI for SilverLight applications introducing the new features like styles, templates, rich data binding, graphics and animation.
Topics covered: Creating User Interfaces with XAML Understanding XAML Creating UI using XAML elements Layout controls o o o o o Grid Canvas StackPanel WrapPanel DockPanel

Working with controls o Creating control instances through XAML o Setting properties on controls o Handling events on controls o RichTextArea Control o Text trimming o ViewBox o Bi-directional text and Right-to-left support in controls Understanding the Event Model Styles o Inline styles
Page 2of 7

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive


o o Default styles Named styles

Resources & Templates o Creating Resources o Resource Dictionaries o Loading resources dynamically o Application Resources o Creating, Modifying & Using Templates Templates o Control Templates o Data Templates o ItemsTemplates Implicit theming for controls

Graphics Shapes and drawing Brushes Transformations Understanding GPU acceleration capabilities Perspective 3D support New bitmap and pixel APIs Create and apply custom pixel shader effects (e.g. blur, dropshadow, swirl, etc) to any image. Easing support

Data Binding Connecting User Interface Elements with Data Direction of the Data Flow Change Notification Updating the Data Source Binding to Collections Data Validation Data Conversions IDataErrorInfo and Async Validation DependencyObject Binding StringFormat, TargetNullValue, FallbackValue DataGrid enhancements ICommand support on ButtonBase and Hyperlink

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Page 3of 7

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive

Module 2 - Data Access Layer


Experienced ASP.NET developers know, with the use of data access, they can write corresponding logic so that application can connect to various external data sources and further query and process data. With sophisticated data access provided by ASP.NET, developers can quickly accomplish the realization of the above process, almost without writing any code. The reason is that, ASP.NET operating environment is a complete installation of .NET framework, so ASP.NET can invoke ADO.NET to access the database, and then the results are transformed into HTML to be sent to the client. But, for Silverlight applications, the same problem is not so simple. Because the Silverlight plug-in runs on the client browser, the corresponding micro .NET Framework is not possible to contain huge ADO.NET components. Aiming at this particular structure of Silverlight applications, the realization of Microsoft's technology is first to submit HTTP requests to the server to let the server carry out the task of data access, and then the results are sent back to the client in accordance with the format of the two sides agreed to. Thus, developers can use any SOAP-based technologies or WCF service to obtain data. Once the data are returned to the client, you can process them by calling the corresponding data components. In summary, Silverlight applications can use the following three typical techniques for data access: Traditional Web Service to access server-side database. Using WCF service shipped with.NET 3.0 framework to access the server database. Through the up-to-date and the most closely Silverlight bound technology--ADO.NET data service, to access the server-side database.

In this module we look at creating services for SilverLight and using the familiar data access methods to work with the backend data and make it available through the services to the presentation layer.
Topics covered: Working with Services and Networking API Creating Services for Silverlight o Silverlight enabled WCF services o Binary XML o ADO.NET Data Services o RESTful services with POX and JSON Consuming Services
Page 4of 7

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive


o o o WCF, ASMX ADO.NET Data Services Other Services (REST, POX)

Security restrictions Network Authentication in Web Requests Sockets and Duplex Services Cryptographic Services Choosing a O/R mapper to use with Silverlight o EF o LINQ to SQL

.NET Rich Internet Application (RIA) Services for n-tier Understanding .NET RIA Services o Pros and cons o Validation model and shared code o Creating RIA Services applications o Using the Data Form with RIA Services o Using RIA services with other data bound controls RIA Services in Visual Studio 2010 o Data source and designer support for common RIA Services

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Page 5of 7

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive

Module 3 - Deployment
It is critical to understand the deployment models of SilverLight 4 and the new features for supporting executing the applications out of the browser. We also have support for using local storage to store temporary application data. This module will look at the various deployment options available in SilverLight 4.
Topics covered: Deployment and Localization Application structure. o The Application Package o Deploying Files In-Package, as External Parts, or On-Demand Application hosting. o Using the HTML object element. o Using the Silverlight.js helper file. o Host HTML content using WebBrowser control Out-of-Browser Support o Out-of-Browser Install, Launch, and Uninstall o Detecting Network Connectivity and Out-of-Browser Status o Checking for Application Updates Elevated trust applications COM interoperability o ComAutomationFactory API o COM Object Access in Trusted Applications Access local files on users machine Changes in Network Cross-domain Request for Trusted Application

Throughout the course a case-study implementation will be taken up to explain the need for each feature, where it fits in the solution and how to implement it.

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Page 6of 7

Mumbai: +91-22-61488911

Synergetics-RIA using SilverLight Deep Dive

Case Study Synopsis


At the onset, participants are introduced to a real world requirement. Each participant is supposed to understand the scope and deliverables, as proposed by the mentor conducting the workshop. Club Membership Management is a rich internet application created to promote the facilities offered by a Sports Club. It consists of two main parts: An interactive web site and A member data management system.

Both of them are developed completely using Silverlight with no HTML. XAML Controls of Silverlight were chosen for their richness and feature set, and for their full Silverlight 4 support. The interactive web site includes a number of pages, offering details about the membership registration, the available facilities, as well as contact information along with an interactive map which allows users to easily find their way to the Club by typing their current location. There is also an iPhone like image gallery utilizing the CoverFlow control, a Registration form and a guest book where member can give their feedback. The member data management system includes a data service which allows users to add, delete and update member detail. It integrates a tree view and a grid control, so that when a tree view item is selected, its content is displayed in the grid. The membership management system also includes a business entities management section where users can add, delete and update data objects from the web site.

Synergetics Information Technology Services India Pvt. Ltd. Web: http://www.synergetics-india.com

Page 7of 7

Mumbai: +91-22-61488911

Вам также может понравиться