Silverlight Basics

Content "filtered", Please subscribe for FULL access.

Chapter 4 : Silverlight Basics

Silverlight Overview arrow_upward

  • Silverlight enables development of the .NET based rich interactive applications for the WP.
  • Silverlight is originally designed as a cross-platform and cross-browser plug-in.
    • As a subset of the .NET Framework.
  • Microsoft introduced the .NET Framework in 2000 as a new approach to software development.
  • The .NET Framework introduced a common set of data types that is used by all .NET-compliant languages like
    • Visual C++
    • Visual Basic
    • Visual C#.
  • All .NET-compliant languages render a common result when compiling code.
  • The .NET Framework is compiled instead of interpreted.
    • This results better performance
  • The .NET Framework also provides improved data access and database integration.

  • Introduction to Silverlight arrow_upward

  • Microsoft introduced Silverlight in 2007
    • It includes about more than 10,000 classes, methods, and properties.
  • It complies with the latest Web development standards.
  • It offers,
    • Rich media
    • User experiences
    • Workflow management
    • Security
    • Authorization
    • Complete distributed communication protocols

    Silverlight Architecture arrow_upward

  • The bulk of Silverlight processing occurs on the client machine.
    • This decreasing server resource utilization.
  • The Silverlight plug-in can be thought of as a scaled-down version of the full .NET Framework.

  • Silverlight Technologies  arrow_upward

  • Version 1.0 of Silverlight used JavaScript and supported the industry-leading Windows Media Services.
    • This enabled delivery of audio and video that includes 2D and vector graphics.
  • Version 2 includes all features of version 1.0.
    • Support for the .NET Framework.
    • Support for .NET-compliant programming languages such as C#, Visual Basic, Python, and Ruby.
    • Support for database operations and language-integrated query (LINQ).
  • Version 3:
    • Supports element-to-element binding—which allows one element to be bound to the state of another element, as well as a validation mechanism for data binding Unlike Silverlight 2, which allowed the applications to save files only to the local isolated storage, Silverlight 3 applications can save to any location on the file system.
  • Version 4:
    • Supports new notification to display messages to end users.
    • New and enhanced controls such as a RichTextBox and an enhanced DataGrid control.
    • New support for implicit theming of controls.
    • New hosted browser support for rendering HTML inside Silverlight.
  • Version 5:
    • Supports GPU accelerated video decoding.
    • Built-in 3D graphics support.
    • Variable speed playback of media content with automatic audio pitch correction.
    • Improved power awareness.
    • Built-in remote-control support.
    • Supports faster application startup.
    • Provides 64-bit browser support.
    • Automated UI testing support for applications with Visual Studio 2010.

    XAML Advantages arrow_upward

  • A Silverlight program is generally a mix of code(VC++/VC#/VB) and XAML.
  • Much of the object creation and initialization performed in XAML would traditionally be done in the constructor of a page or window class.
  • XAML is XML compliant.
  • XAML is machine writable and machine readable.
  • XAML is also human writable and human readable.

  • Platform Support by Silverlight arrow_upward

  • Silverlight can be installed on Windows and Mac machines.
  • The Silverlight plug-in renders graphics and multimedia using a vector-based graphics engine.
  • Silverlight on a WP device will accommodate delivering live streaming, and high quality video to smart phone.

  • Program design with Silverlight arrow_upward

  • The Visual Studio is a tool for creating the code.
  • The Windows Phone SDK (Software Development Kit) includes versions of Visual Studio and Expression Blend that can be used for XAML creation.

  • Silverlight Elements and Objects arrow_upward

  • Objects are a great way to represent things we want to work with.
  • An object is an aggregation of behaviors and data.
  • If we were creating an application to look after the bank accounts of a user we could create a class to hold account information:
  • public class Account
    private decimal balance;
    private string name;
    public string GetName()
    return name;
    public bool SetName(string newName)
    // Final version will validate the name
    name = newName;
    return true;
    // Other get and set methods here
  • Object of above class can hold Name for each account of a bank account.

  • Silverlight Design Hierarchy arrow_upward

  • It starts with Button pressed by the user and finally reached to Framework elements.

  • Thank You from Kimavi arrow_upward

  • Please email us at and help us improve this tutorial.

  • Mark as Complete => Receive a Certificate in Windows-Phone-Programming

    Kimavi Logo

    Terms and conditions, privacy and cookie policy

    Kimavi @ YouTube | Email Admin @ Kimavi | Visit TheCodex.Me

    Beautiful Educational Videos for School, College, Languages & Encyclopedia

    Learn Python with 500,000 students

    Created with Love