austinklion.blogg.se

Silverlight players
Silverlight players




  1. Silverlight players code#
  2. Silverlight players professional#
  3. Silverlight players download#

Following the MediaElement, there are the three Buttonss which, respectively, are green (Play), yellow (Pause) and red (Stop). The Source property should be replaced with whatever video you wish to display. The first child element after the is the MediaElement.

silverlight players

You can see the size of the UserControl is quickly set within two attributes, along with the XAML namespaces references. I still chose to throw in a element following this, for easily positioning the Buttons. Firstly, there is the declaration of the root element. We need a MediaElement for hosting our video, and three Buttons (for Play, Pause, and Stop).ġ: 5: 6: 7: 9: 11: 13: 15: 16: 17:

Silverlight players code#

You can drag and drop controls into the code view to create our user interface – designer drag-and-drop isn’t supported yet – or you can just copy and paste the following code.

silverlight players

Looking in the code view, note that the root XAML element is, whereas in some earlier Silverlight releases the root element was almost always. Once the project is created, the first file you will see is a split designer/code view of Page.xaml. Web Application Host prompt while creating a Silverlight Application If you don’t have an existing web application to host your Silverlight application in, go ahead and leave the default settings and hit OK, like this: To do this, first create a project in Visual Studio called “VideoPlayer” with the Silverlight Application template.Ĭreating a Silverlight Application in Visual Studio 2008Īs the project is being created, you will see a prompt asking about a web application to host the Silverlight application. Let’s start out by designing the interface of our video player. Once all this is taken care of, proceed to the next section! Creating the UI Finally, you will need Silverlight 2 Beta 2, downloadable at the official Silverlight website (). Next, you will need the Silverlight Tools Beta 2 (which includes Visual Studio Silverlight support and the Silverlight SDK), which is available at.

Silverlight players professional#

Firstly, you need to have a version of Visual Studio 2008 (I will be using the Professional edition and will assume that is the version you have, too – other versions may work, however).

silverlight players

Silverlight players download#

In order to use the features talked about in this article, there are just a few things you’ll need to download (or ensure you already have). Source Code: VideoPlayer.zip Prerequisites In this article I will present a simple yet expandable scenario that will help new and existing Silverlight developers enhance their development experience. Newcomers to Silverlight and developers upgrading to the newest versions may have trouble learning all the ropes of the new 2 Beta 2 version. However, with the continuous stream of alpha and beta releases, there are many breaking changes that appear. The power and possibilities behind Silverlight are endless.

silverlight players

Silverlight sure has come a long way since the days of “WPF/E.” With its most recent release, Silverlight 2 Beta 2, it has truly proven itself to be one of the best toolsets for Rich Internet Applications, and has effectively achieved its original goal of being an Internet version of WPF. Note: This article is submitted by David for Silverlight Contest: Write and Win.Thanks a lot, David! Hello All, Please drop a comment if you like it.






Silverlight players