Silverlight 2 Download

Download Microsoft Silverlight for Windows to add a Web browser plug-in for accessing rich interactive applications. Microsoft Silverlight has had 0 updates within the past 6 months. These series cover the following topics: Silverlight 2 download, silverlight xml, ms expression, expression web designer. Be sure to also check out the 4 hours of free video tutorials on Silverlight 3 and ms expression. Presenter: Lindsay Rutter, Developer Evangelist, Microsoft Corporation photo credit: scorbette37. The Official site of Microsoft Silverlight. Download and install the latest version Microsoft Silverlight plug in for your browser.

  1. Silverlight 2 Download
  2. Mozilla 2 Download
  3. Do I Need Silverlight On My Computer
  4. Silverlight 5 Download Windows 10
  5. Silverlight 4 Download Free

First of all, wishes to all my Blog readers..”Happy Diwali and Wonderful upcoming New Year”

This week was full of fun and joy..well Windows 7 is getting ready to public today !! My Best wishes to Windows Team for their Hard Work throughout.

Well,coming back to Silverlight 2, we saw several demos on media and images, This post will help you to not only set Source of Media and images dynamically but also you can do this with cross domain, Its not very difficult but can turn into nightmare if not done systematically.

Aim of this article to reduce XAP in size by not to adding each and everything as content,Media server I am not sure each and everyone will go and buy, So another good option is to host them on IIS with creating virtual directory with videos and pictures. I am not sure about performance comparison between IIS and Media Server though, It just another tip and trick to make things simple to understand,develop and maintain.

Step 1 : Download Contents

For calling contents like Videos and images following code will work :

namespace SLDownLoadProgress
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(Page_Loaded);
}

void Page_Loaded(object sender, RoutedEventArgs e)
{
WebClient ws = new WebClient();
ws.OpenReadCompleted += new OpenReadCompletedEventHandler(ws_OpenReadCompleted);
ws.OpenReadAsync(new Uri('http://localhost:1425/Videos/numbers.wmv'));
ws.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ws_DownloadProgressChanged);

}

void ws_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
try
{
MyProg.Value = (double)e.ProgressPercentage;
Mystk.Visibility = Visibility.Collapsed;
}
catch (Exception ex)
{
HtmlPage.Window.Alert(ex.InnerException.ToString());
}
}

Download

void ws_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
try
{
StreamResourceInfo srcinfo = new StreamResourceInfo(e.Result as Stream, null);
MyVid.SetSource(srcinfo.Stream);
MyVid.Play();
}
catch (Exception ex)
{
HtmlPage.Window.Alert(ex.InnerException.ToString());
}
}
}
}

Observe carefully following things :

  • I have fixed Port here as 1425, Its good thing to do when you are trying it locally, Developer need to Understand Absolute and Relative path well, “AG_E_NETWORK_ERROR” which is common error, remember that it is always due to irrelevant Path.
  • I am handling two events over here as OpenReadCompleted()[ This is for actual logic implementation] and another one is DownloadProgressChanged() [ This is for keeping track of amount of download]
  • I am using StreamResourceInfo for streaming and for Images you might need to Cast images while downloading content with help of BitMapImage instance.

As far as Cross-domain downloading is concern or let it be within same IIS instance with different virtual directories, Since Silverlight is client side technology though it will not allow you direct access to data or drive any way, so to address this issue you need a XML file named as “clientaccesspolicy.xml” ,content of this file will be like :

<?xml version='1.0' encoding='utf-8' ?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers='*'>
<domain uri='*'/>
</allow-from>
<grant-to>
<resource path='/' include-subpaths='true'/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

Some of my friends who blog on silverlight had mention that this file is not needed,practically I don’t belive this, so I will suggest you to have this in your both application, The application which is demanding and application which is providing the contents. This is very useful also in cases like transfers between http and https, so its good practice to have this file.

Step 2 : Show Download Progress by Silverlight 2 ProgressBar controls and other techniques like showing “Loading…” images.

XAML Code : [Here you have 2 options, either show progress by progress bar or show Loading Image.

<Grid x:Name='LayoutRoot' Background='White'>
<StackPanel x:Name='Mystk'>
<TextBlock x:Name='Mytxt' Text='Downloading...' Canvas.Left='100'/>
<ProgressBar x:Name='MyProg' Height='25' Minimum='0' Maximum='100' />
<!--<Image x:Name='Loader' Source='http://localhost:1425/Images/loader.jpg' Height='100'/>-->
</StackPanel>
<StackPanel>
<MediaElement x:Name='MyVid'/>
</StackPanel>
</Grid>

As I said above you can go for image also, I have commented that particular code, if you want you can put it on.

Managed C# code for this :

Again for showing the delay you can either create instance of StoryBoard and implement timer kind of functionality or you can use one thread in sleep mode with some specific delay.

Silverlight 2 Download

Here download completed part will take care of Progress, You can see both the techniques in code below [Well, you need to decide and separate out each as per your requirement specification]

public partial class Page : UserControl
{
Storyboard timer = new Storyboard();

public Page()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(Page_Loaded);
}

void Page_Loaded(object sender, RoutedEventArgs e)
{
WebClient ws = new WebClient();
ws.OpenReadCompleted += new OpenReadCompletedEventHandler(ws_OpenReadCompleted);
ws.OpenReadAsync(new Uri('http://localhost:1425/Videos/numbers.wmv'));
ws.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ws_DownloadProgressChanged);

timer.Duration = TimeSpan.FromSeconds(50);
timer.Completed += new EventHandler(timer_Completed);
timer.Begin();

}

void timer_Completed(object sender, EventArgs e)
{
if (MyProg.Value <= MyProg.Maximum)
{
MyProg.Value += 1;
timer.Begin();
}
}

void ws_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
try
{
MyProg.Value = (double)e.ProgressPercentage;
Mystk.Visibility = Visibility.Collapsed;
}
catch (Exception ex)
{
HtmlPage.Window.Alert(ex.InnerException.ToString());
}
}

void ws_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
try
{
StreamResourceInfo srcinfo = new StreamResourceInfo(e.Result as Stream, null);
MyVid.SetSource(srcinfo.Stream);
MyVid.Play();
}
catch (Exception ex)
{
HtmlPage.Window.Alert(ex.InnerException.ToString());
}
}
}

If you feel this is tricky and difficult,life can be made easy by putting this silverlight control in update panel and implement Update Progress to show that its “Loading..” with some image.

For such technique you can refer my old article :

I hope this will ease your job and helpful for you to manage contents of silverlight on demand especially when they are large in size.

Vikram.

297,299 downloadsUpdated: January 16, 2019Freeware / Ad-supported

A cross-browser, cross-platform plug-in designed specifically to help developers create better content and normal users enjoy the stunning results

Thanks to the continuous evolution of the Internet and of web technologies, users can enjoy new and immersive experiences. One of the rather recent innovations that were especially designed for these purposes is Microsoft Silverlight.

Support for multiple platforms and a few improvements

This particular technology, apart from being cross-platform, is applicable to both 32-bit and 64-bit systems. Silverlight brings more fluid interfaces and provides many features for developers, as it strives to help them in creating unique media experiences.

The plugin greatly improves video quality and the playback performance is also turned up a notch. Animations are smoother than those presented in similar technologies and interaction plays a more important role in both developing and watching Silverlight content.

Better zoom and support for three-dimensional content

Among the most visible transformations can be noted “Deep Zoom.” This feature is used with high-resolution imagery and it provides notably smooth and fast zoom to minimize loading times and stress on system apps and resources.

Another innovation present in Silverlight is called “Perspective 3D Graphics,” which was developed to allow developers to add content to three-dimensional planes. The users who view that content can, in turn, scale or rotate it as they wish.

Other visual improvements

For developers, this technology comes with many visual improvements that can be used in their applications. Among those, “Pixel Shader” and “Skinning and Styling” bring effects for animations and graphical content, as well as the ability to use those graphics to create personalized controls.

Conclusion

All in all, Microsoft Silverlight is definitely a step forward, as it provides innovations for both content creators and beholders. The content built using this tool is interactive and engaging as well and, as the support for Silverlight expands, it's a good idea to have it installed on your system.

Filed under

Microsoft Silverlight was reviewed by Olivian Puha
4.5/5
SYSTEM REQUIREMENTS

Silverlight 2 Download

  • Windows Vista with Windows Internet Explorer 7, Firefox 1.5, Firefox 2
  • Windows XP SP2 with Internet Explorer 6 or 7, Firefox 1.5, Firefox 2
  • Windows Server 2003 (excluding IA-64) with Internet Explorer 6 or 7, Firefox 1.5, Firefox 2
  • Windows 2000 with Internet Explorer 6 (Silverlight 2.0 Only)
  • X86 or x64 500-megahertz (MHz) or higher processor with 128-megabytes (MB) of RAM
New in Microsoft Silverlight 5.1.50907.0:
  • Fixes the security vulnerability that is described in the following Microsoft Knowledge Base article 4023307: Security Update for Silverlight to Address Remote Code Execution and Information Disclosure : June 13, 2017

Mozilla 2 Download

Silverlight 2 DownloadRead the full changelog
Load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy

Do I Need Silverlight On My Computer

Microsoft Silverlight 5.1.50918.0

add to watchlistsend us an update
4 screenshots:
runs on:
Windows 10 32/64 bit
Windows Server 2012
Windows 2008 R2
Windows 2008
Windows 2003
Windows 8 32/64 bit
Windows 7 32/64 bit
Windows Vista 32/64 bit
file size:
6.7 MB
filename:
Silverlight.exe
main category:
Tweak
developer:
visit homepage

Silverlight 5 Download Windows 10

top alternatives FREE

Silverlight 4 Download Free

top alternatives PAID