Tuesday, April 28, 2009

Expand controls when Mouse over the Grid

Here i just posts for simple example for mouse events in silverligth... It's just look like some animation's.. whenever u hold mouse over the button it's automatically shows respected pages.... u can modify and add some more items as easily....

Copy the following code in Page.xaml file



xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">


Tuesday, April 21, 2009

Difference between silverlight1.0 and 2.0

Silverligth 1.0

It’s a subset of 2.0, which offers greater potablity through the virtual machine and should replace the first version. It’s cross-platforms and cross-browsers plug-in to display web pages holding XAML code.

Silverlight 1.0, which was developed under the codename Windows Presentation Foundation/Everywhere (WPF/E), consists of the core presentation framework, which is responsible for UI, interactivity and user input, basic UI controls, graphics and animation, media playback, Digital rights management, and DOM integration. It is made up of the following components:

Input – handling input from devices like keyboard, mouse, stylus etc.

UI core – managing rendering of bitmap images (including compressed raster images like JPEG), vector graphics, text and animations.

Media – playback of MP3, WMA Standard, WMV7, WMV8 and WMV9/VC-1 streams.

XAML – to allow the UI layout to be created using XAML markup language.

To facilitate this, Silverlight exposes a DOM API, accessible from any scripting language supported by Silverlight, which in version 1.0 release is limited to JavaScript running in the browser. Support for data formats is limited to XML and JSON only.

Friday, April 10, 2009

Web Service

Accessing Web Services in Silverlight


Silverlight version 2 client applications run in the browser and often need to access data from a variety of external sources. A typical example involves accessing data from a database on a backend server and displaying it in a Silverlight user interface. Another common scenario is to update data on a backend service through a Silverlight user interface that posts to that service. These external data sources often take the form of Web services. The services can be SOAP services created using the Windows Communication Foundation (WCF) or some other SOAP-based technology, or they can be just plain HTTP or REST services. Silverlight clients can access these Web services directly or by using a proxy generated from metadata published by the service. Silverlight provides the necessary functionality to work with a variety of data formats used by services. These formats include XML, JSON, RSS, and Atom. These data formats are accessed using Serialization components, Linq to XML, Linq to JSON, and Syndication components. Web services that a Silverlight application can access must conform to certain rules to allow such access. These rules are discussed in context within the topics contained in this section.