Silverlight Framework Architecture By Satyen

Embed Size (px)

Citation preview

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    1/11

    SilverlightSilverlight frameworkframework

    architecturearchitectureSatyen Pandya

    [email protected]@gmail.com

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    2/11

    SilverlightSilverlight framework architectureframework architecture

    y The Silverlight framework allows applications to accessWeb services, databases, Web servers, and other data

    sources to acquire data that is displayed in the UI.y It also allows the application to integrate with the Web

    page DOM as well as AJAX and JavaScript to enhance thefunctionality of the Web page.

    y Silverlight framework sits in between the Web browser

    DOM and the Web services.

    y JavaScript and AJAX flow up the stack and can beintegrated and accessed from all layers of the Silverlightframework.

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    3/11

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    4/11

    TheThe SilverlightSilverlight core presentationcore presentationframeworkframework

    y It is a subset of the Windows Presentation Foundationlanguage.

    y The following is a list of components that are included withthe core presentation framework listed in Figure

    XAML parser: Parses the XAML files into objects.

    UI renderer: Handles rendering of XAML objects, such asvector/bitmap graphics, animation, and text, into UI elementsthat are displayed in the applications.

    Layout: Utilizes canvas, grid, and other controls todynamically position and size UI elements.

    Controls: Implements extensible controls, such as buttons,sliders, calendars, and text boxes, which provide customizablefunctionality to applications.

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    5/11

    Media pipeline: Provides streaming of audio and videofiles as well as playback and other management.

    Data binding: Enables data objects to be directly linked toUI elements in a one-way or two-way relationship. Changesto values can then be reflected automatically using the link.

    Input: Handles the input from user input devices such as amouse, keyboard, and other input requests.

    DRM: Implements digital rights management to protect media

    files in Web applications.

    TheThe SilverlightSilverlight core presentationcore presentationframeworkframework

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    6/11

    y It uses much of the .NET framework and enhances some ofthe libraries to provide additional functionality necessary

    for Silverlight applications.

    y The following is a list of components that are included withthe .NET Silverlight framework listed in Figure Common Language Runtime (CLR): Provides the memory

    management, type checking, exception handling, and garbagecollection for Silverlight applications

    Base Class Libraries: Provides the base set of .NET librariesthat handle basic programming functionality such as stringhandling, regular expressions, collections, and input/output

    Dynamic Language Runtime (DLR): Provides theframework to dynamically compile and execute JavaScript,IronPython, and IronRuby managed code in Silverlightapplications

    The .NETThe .NET SilverlightSilverlight frameworkframework

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    7/11

    Windows Presentation Foundation (WPF): Provideslibraries to parse, access, and modify controls defined in XAML

    files as well as create and dynamically add new ones Windows Communication Foundation (WCF): Provides

    libraries to interface with remote services, such as Webservers, RSS feeds, and other Web services

    Data Framework: Provides a set of libraries to parse andserialize XML data as well as support for Language Integrated

    Query (LINQ) requests to XML sources and SQL databases

    The .NETThe .NET SilverlightSilverlight frameworkframework

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    8/11

    SilverlightSilverlight

    applicationapplicationarchitecturearchitecture

    y Silverlight applications can

    be broken down into three

    distinct components, eachof which is written in a

    different language.

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    9/11

    y The bottom layer in Figure is the Web Page Object.

    This is an HTML element or ASP.NET control that tells the

    browser to use the Silverlight plug-in to load a Silverlightapplication.

    y The middle layer in Figure is the Presentation Code.

    This is one or more XAML files that define the UI elements,user input controls, transformations, and animations that willbe implemented in the Silverlight application.

    Most of the UI will be written in XAML because it is simple toimplement especially with the aid of applications such asMicrosofts Expression Blend.

    SilverlightSilverlight application architectureapplication architecture

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    10/11

    y The top layer in Figure is the Managed Code.

    These are .NET code-behind files that are actually part of the

    same class as the XAML files. This provides the managed codewith the ability to access and modify the UI elements definedin the XAML file to implement functionality in Silverlightapplications.

    These files can be written in C#, Visual Basic, JavaScript,IronPython, and IronRuby. Using Silverlight implementation of

    the .NET framework, managed code is able to implement dataaccess and communication to a variety of services.

    SilverlightSilverlight application architectureapplication architecture

  • 8/7/2019 Silverlight Framework Architecture By Satyen

    11/11

    Thank youThank you

    Satyen [email protected]

    [email protected]