Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Lightstreamer - Basic Stock-List Demo - Silverlight Client

This project contains a simple Silverlight version of the Lightstreamer - Stock-List Demos - HTML Clients fed through a Lightstreamer server.

Live Demo


View live demo


This app uses the Silverlight Client API for Lightstreamer to handle the communications with Lightstreamer Server and uses a Silverlight Grid to display the real-time data pushed by Lightstreamer Server.
After launching the demo, the Silverlight application will automatically connect to Lightstreamer Server and will subscribe to 30 stock quotes.

A Silverlight Grid is used to display the real-time data. You can sort on any columns and drag the columns around (in this demo, the resorting is not done automatically on each update).


If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:

  • Note that, as prerequisite, the Lightstreamer - Stock- List Demo - Java Adapter has to be deployed on your local Lightstreamer Server instance. Please check out that project and follow the installation instructions provided with it.
  • Launch Lightstreamer Server.
  • Download the file, which you can find in the deploy release of this project and extract the deployment image of the demo, which includes the .xap file needed to contain all the resources that make up the demo (i.e., the demo DLL, the Lightstreamer client library DLL and, possibly, other SDK resources) and a container html page.
  • This deployment image is ready to be deployed under Lightstreamer's internal Web Server, copy the two files into some subfolder of the pages directory (i.e., Silverlight_StockListDemo_Basic).
  • Open the http://localhost:8080/Silverlight_StockListDemo_Basic/ in your favorite browser.


To build your own version of the demo, instead of using the one provided in the file from the Install section above, note that this project includes the following sub-folders:

  • Source
    Contains the sources to build the Silverlight application from Visual Studio.

  • Properties
    Contains the property files associated to the application sources.

  • Images
    Contains the image files used by the Silverlight application.

  • lib
    Should contain Lightstreamer Silverlight Client library, to be used for the build process.
    Please download the latest SilverlightClient.dll and SilverlightClient.pdb files from the Lightstreamer Silverlight Client SDK resources into this folder of the project.

The Silverlight Client Library is compatible with Silverlight environment version 3 or newer.

How to deploy the demo on your web server

You should complete the deploy folder of this project with the built demo as compiled from the provided source files. Please note that the folder already contains a container html page, just as an example.
This deploy folder is ready to be deployed under Lightstreamer's internal Web Server, by copying all the contents into some subfolder of the pages directory.

The demos are now ready to be launched.

By the current configuration, the demo tries to access Lightstreamer Server by using the protocol, hostname, and port from which the index.html page was requested; in other words, the demo assumes that the static resources are deployed inside Lightstreamer Server.

To deploy the demo static resources on an external Web Server, some changes are needed on the deployment image before or after copying it into the Web Server folders. The configuration of the url to be used to connect to Lightstreamer Server should be added. The configuration section can be easily found in deploy/index.html, as the if-block containing the param name="initparams" pattern and can be modified manually, without the need for a recompilation.

Then, to allow the page to get resources from a different server, the Web Server address has to be included in the clientaccesspolicy resource deployed under Lightstreamer Server. See the <silverlight_accesspolicy_enabled> element in the Server configuration file for details.

See Also

Lightstreamer Adapters Needed by This Demo Client

Related Projects

Lightstreamer Compatibility Notes

  • Compatible with Lightstreamer Silverlight Client Library version 1.4 or newer.
  • Ensure that Silverlight Client API is supported by Lightstreamer Server license configuration.


This project contains a simple Silverlight version of the Lightstreamer Stock-List Demos fed through a Lightstreamer server







No packages published

Contributors 4