Tuesday, December 18, 2007

Data access in Silverlight by calling web service

Silverlight is a amazing technology which gives you stunning look for your web applications. But the released versions dont have support to access data directly.Also you cant do cross domain web requests from a silverlight domain.

So as a solution you have to go for some other techniques for data access as well as to get data from other web sites. Hers is a small technique which access web service. You can provide a data source from a out side service local web service.

Here is a solution which uses GETISD service from a webservice and exposes a local service

This technique employs a local web service to access data from out side .Silverlight application will be communicating to this local service only.


Download sample here

Tuesday, November 27, 2007

Limitations of Silverlight fullscreen mode

We could make any Silverlight application into full screen by setting the fullScreen property of Silverlight object.

//Silverlight 1.0
plugIn.content.fullScreen =true; //Where plugIn is the Silverlight control.

//Silverlight 1.1
BrowserHost.IsFullScreen = true;


//Silverlight 2
App.Current.Host.Content.IsFullScreen =true

But when we switch into full screen we will lost some functionalities .They are

  1. Not able to capture key strokes ie no keyboard support
  2. HTML overlay elements will be hidden : This is because we are just making th Silverlight control full screen.Not the entire HTML page.