How to Make a Silverlight Textblock an Input Control

Silverlight Audio Player is an audio interface that you can install onto a website. Generally, when you install Silverlight Audio Player, the player launches and plays music automatically when the website is opened. The music in a Silverlight Audio Player is accessed from another location online, and the coding used to install Silverlight Audio Player points to the URL where the music is stored. If you prefer a website visitor to have control over the Silverlight player, you can also turn the Silverlight textblock in the coding into an input control.

Things You'll Need

  • FTP program
Show More

Instructions

    • 1

      Download an XML editor to your computer. You can download many editors for free online. XML Notepad is Microsoft's native XML editor, which you can download at the Microsoft website, and Apple recommends Serna Free XML Editor, which you can download directly from the Apple site (see Resources).

    • 2

      Create the playlist of the songs that you want to play through Silverlight Audio Player in the XML editor if you haven't done so already. This is the textblock for Silverlight. To create a playlist textblock, launch the XML editor and enter the following coding into the file:

      <xml version="1.0" encoding=utf-8" >

      <playlist>

      <audiofile url="http://www.[website]/[page]/audio/[file name]" title="[song title]" artist="[artist name]" />

       

      "[website]" refers to the URL where the song is located; "[page]" references the specific page at that URL, if the website has more than one page; "[file name]" is the name of the song file, such as "Seasons Greetings.mp3"; "[song title]" is the song name as you want it to appear on your website; and "[artist name]" is the name of the singer or musician.

    • 3

      Add the coding above for each song you want to add to the Silverlight player on your site. Go to "File" and "Save" once you have finished with the playlist, and enter a name for the playlist when prompted. Save the playlist to the same folder that contains all your other website files.

    • 4

      Download and install Silverlight Audio Player (see Resources) to the website where you want to add the Silverlight input control. Install the playlist by transferring the coding you download from the site into your website editor as you would any other coding for your page.

    • 5

      Point the Silverlight player to the XML playlist you created in the XML editor. Type "Playlist=[path]" after "InitParams" in the Silverlight player coding and fill in "[path]" with the location of the playlist on your computer. Upload the playlist file to the website along with the player when uploading the player through your FTP service. The Silverlight player appears on the page with standard input controls.

Related Searches:

References

Resources

Comments

You May Also Like

  • How to Format a Silverlight Text Block

    Use the "Run" command within the text block to change attributes of the text. For example, input "<Run Foreground="Blue">Text Here</Run>" to change...

  • Silverlight Tutorial for Beginners

    Microsoft Silverlight can be used to create applications for websites. You can add buttons, animations or graphics to your application that can...

  • How to Create a Silverlight Music Playlist

    Add links to your XML file. All songs must be uploaded to your Web application to run on your site through the...

  • Silverlight Animation Tutorial

    Enter the following code in the main editor window to animate the Ellipse using a point animation: <Animate MouseLeftButtonDown="Handle_MouseDown"

  • How to Build a Form in Microsoft Expressions

    Microsoft Expressions is a web design software application and HTML editor. It is part of the Microsoft Expression Studio suite. You can...

  • How to Warp Text in Silverlight

    Microsoft Silverlight incorporates elements of the Windows Presentation Foundation framework to create a media-rich programming environment used by browsers for ...

  • How to Play Audio in Silverlight

    Microsoft Silverlight is a multimedia platform designed for usage on multimedia websites and applications. The software is designed for interactive gaming and...

  • How to Create Silverlight Apps With JavaScript

    Silverlight server-web applications can execute on client machines, communicate with servers and services over the Internet and are regarded as safe and...

  • How to Use a Gridsplitter in WPF

    This article will demonstrate how to set up a WPF Gridsplitter in XAML using Microsoft Visual Studio 2008. I apologize for the...

  • How to Build a Silverlight Website

    Microsoft Silverlight is a development platform used to build a wide variety of media applications. Web developers use Silverlight to embed these...

  • How to Create Silverlight Overlays

    Microsoft Silverlight makes merging such varying elements as audio, video and images into a single video quite easy. One common use for...

  • How to Display an Image in Silverlight

    Microsoft Silverlight provides you with a language tool for advanced graphics and user interaction on web pages. The Silverlight software is freely...

  • How to fix Silverlight upgrade errors on Netflix

    Netflix has become a very popular source for DVD movies, not only DVDs-by-mail, but online streaming of movies to your home computer...

  • How to Print in Silverlight 3

    Microsoft Silverlight is a multimedia application framework designed to function both within Internet browsers and as a stand-alone product. Many websites currently...

  • How to Make Text on a Web Page Blink Off and On

    You can make text blink on and off using the HTML blink tag. You'll need a basic knowledge of HTML (see "How...

  • What Is the Silverlight Program?

    According to the Microsoft Silverlight website, the Silverlight program is a development platform for online and offline Internet, desktop and mobile applications...

  • What Format Is Silverlight?

    Silverlight is a multimedia development environment produced by Microsoft. Similar to Adobe Flash, it enables the creation and display of audio and...

  • How to add an Image to Silverlight

    Silverlight is a program from Microsoft for Windows computers that allows users to create multimedia applications for the Internet, business or cell...

  • How to Play a WMV With Silverlight

    Silverlight is a plug-in for the .NET architecture. This particular plug-in is distributed free by Microsoft. The main purpose of Silverlight is...

Related Ads

Featured