Introduction of Silverlight

Silver light is the new Microsoft technology on the web platform for Rich Internet Applications (RIA) launched by Microsoft in 2007. Silverlight supports multiple browsers called cross-browser technology.
  • 1542

Introduction

Silver light is the new Microsoft technology on the web platform for Rich Internet Applications (RIA) launched by Microsoft in 2007. Silverlight supports multiple browsers called cross-browser technology, which includes Internet Explorer, Firefox and Safari, Opera . Silverl ight supports multiple Operating Systems which includes the Windows family of OSs, Mac, and Linux with Moonlight technology . Silver light also supports multiple devices which includes mobile devices to desktop browsers to 720p HDTV video modes Silver light is a browser plug-in approximately 4MB in size; it is a client-side free software easy and fast, and has a less than 10 sec one time installation available for any client side browser. Silver light supports display of high-definition video files, and sending them over the internet. Silver light applications are delivered to a browser in a text-based markup language called XAML. XAML is a declarative markup language that you can use to define UI elements for your Silver light-based applications. Silverlight is considered as a competitor to Adobe Flash technology. One of the design goals of the Silverlight technology is to fill the gap between Windows applications and web applications in terms of creating Graphical User Interfaces (GUI). So far, web developers were not able to make clients happy in terms of UI, but now web developers will be able to full fill this with the help of the Silver light technology.

Why Sliver light

  • Support for the .NET framework  if you are a .NET developer  it is easy to start programming on Silverlight.
  • Support for Managed code you can write programs in your favorite languages which the .NET CLR supports, like C#, VB.NET, dynamic languages.
  • Better development tools  Visual Studio 2010, Expression Blend.
  • Large community lot of learning resource are available as compared to Flash technology.
  • Integration with Enterprise based technologies like WPF, LINQ.

Simple Sliver light application

Code

<Canvas
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Loaded="javascript:root_Loaded">
    <MediaElement
        x:Name="mPlayer" Width="640" Height="400"
        Source="http://download.microsoft.com/download/6/5/2/6527a090-aef4-4ed2-8d7e-8946e94257a0/WM_IN_Sumit_Chauhan.wmv" />
    <TextBlock Canvas.Top ="0" Text="Play"
        MouseLeftButtonDown="javascript:PlayVideo">
    </TextBlock>
    <TextBlock Canvas.Top ="16" Text="Stop"
        MouseLeftButtonDown="javascript:StopVideo">
    </TextBlock>
    <TextBlock Canvas.Top ="32" Text="Pause"
        MouseLeftButtonDown="javascript:PauseVideo">
    </TextBlock
>
</Canvas>

Summary : This is the simple sliver light application play the media player.

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.