silverlight

How do I get a simple sound to play in Silverlight?

I want to play a simple sound. I'm not getting any exceptions, but the sound just isn't playing <MediaElement Source="sounds/Laser.mp3" Volume="1" AutoPlay="True" x:Name="Laser" /> Calling the Play() method doesn't work either. Laser.Play(); ...

silverlight 3.0 communication with winforms

I would like to create a winform on the client side for interaction with Silverlight 3.0. The basic idea is using the winform browser. I definitely need both the directions of communication. Would it be impossible by using JavaScript as a midware for the interaction or some better ways? Or is there any new features of Silverlight 3.0 sup...

How to move Controls Like Grid or Stack panels as Carouse on click of buttonl in Silverlight.

I have one popup. In that popup i have three steps. All data for that three steps are in one XAML page in three different grids . i want to move that three grid one by one on click of Next button with anymation. How can i do it with silverlight 3.0 ...

Date AND Time picker control for Silverlight

I'd like to have a date AND time picker for my Silverlight application. AFAIK there are date and time controls in the SDK and the toolkit but they pick either a date OR a time. I'd like to have the same kind of control that's available in WinForms where I can pick a date AND time at the same time. Cheer. ...

play media file error in Silverlight

Hello everyone, I am using Silverlight 2 + VSTS 2008 + C#. And I downloaded source code from the popular sl2videoplayer, http://sl2videoplayer.codeplex.com/ then I build the solution and then using IE to open default.html. But no video is played, here is the error message from IE and screen snapshot from IE. Any ideas what is wrong and ...

Overcoming asynchronous nature of WebClient.OpenReadAsync when building Silverlight video player

Dear fellow programmers at Stackowverflow.com or anyone knowledgeable, I am presently building my first real life application using RadControls for Silverlight from Telerik. So far I pretty much like it and controls whether in Silverlight or from third parties are really powerful. This particular application is essentially a video playe...

open browser error in VSTS2008 for a Silverlight project

Hello everyone, I am using Silverlight 2 + VSTS 2008 + C#. And I downloaded source code from the popular sl2videoplayer, http://sl2videoplayer.codeplex.com/ then I build the solution and then using F5 to debug (IE tries to open default.html). But seems the page cannot be opened, here is the screen snapshot. Any ideas what is wrong? htt...

Silverlight: Nested containers and Binding

The Scenario Bit: On one of the controls within my Silverlight application I have embedded a custom user control. Within this embedded control is another custom user control that contains a datagrid. I would like to use binding to populate the datagrid. Easy enough I just sepcificy a collection that is in the DataContext of the parent c...

ExecutionEngineException on an HttpDuplexBinding webservice call

I've been struggling with a webservice that throws an ExecutionEngineException for the past day. I finally worked out that the Silverlight client doesn't like IEnumerable<> nor IList<> nor List<> as the return type. MyObject[] is fine though. I managed to reproduce it in a sample solution: Service description: [ServiceContract] ...

Silverlight 3 Navigation

After installing silverlight 3 from silverlight 3 Beta, the Frame control doesnt seem to work any more... is this corrent.. I get no error and no navigation.. <navigation:Frame x:Name="Frames" Source="Home" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"> <navigation:Frame.UriMapper> ...

Collecting Query string values from URL in Sliverlight and WCF application

I am trying to retrieve query string values from a url. And the app should be a silverlight app. For Eg: The sample URL might look like http://&lt;hostname&gt;/silverlightApp/Default.aspx?S=Name|address|title|sal|... I should be able to take the query string and built a Silverlight UI. Can this be done or Silverlight is not a good ca...

How to authenticate client application for trust of messages sent from it

The basic question How do I know that it is my publicly accessible (client) application that is sending my service messages? How do I know that it is just not some other application that is impersonating my application? Some Background Currently we log all errors that occur on our websites via log4net and WCF to a database. This works w...

Using FJCore to encode Silverlight WriteableBitmap

I am trying to find out how to use FJCore to encode a WriteableBitmap to a jpeg. I understand that WriteableBitmap provides the raw pixels but I am not sure how to convert it to the format that FJCore expects for its JpegEncoder method. JpegEncoder has two overloads, one takes a FluxJpeg.Core.Image and the other takes in a DecodedJpeg. ...

Good Beginning Silverlight Game Resources?

I am starting to learn Silverlight game programming, and was wondering if anyone knows of some good tutorials or resources to get started with. I'm just beginning, so guides that teach concepts thoroughly would be appreciated. ...

WCF WebGet ResponseFormat Vs WebOperationContext.OutgoingResponse.ContentType

What is the difference between using a WebGet attribute [WebGet( ResponseFormat = WebMessageFormat.Xml )] and manually setting the content type? WebOperationContext.Current.OutgoingResponse.ContentType = "application/xml"; I have a Silverlight app that is making this request to WCF. I'm looking at the traffic and the request/resp...

Silverlight, WCF and rewriting response

I am trying to write a WCF service as a proxy for my Silverlight control to do cross-domain requests to an internet REST web service. I just want to make the requests to my service, and it would format and forward the request to the 3rd party web service (replace the hostname and part of the URL), then simply return the response to the c...

Dynamically added DataTemplate - StaticResource for Converter can't be found

Hi, I'm using the following code to dynamically add columns to my GridView: public void AddGridViewColumns() { GridView view = (GridView)_myListView.View; GridViewColumn column = BuildGridViewColumn(1); view.Columns.Add(column); } public virtual GridViewColumn BuildGridViewColumn(int blockIndex) { string templateXaml = ...

YahooMaps or OpenStreetMaps in Silverlight?

Has anyone seen an example of using the YahooMaps API in silverlight (2.0)? Specifically the JSON API? Yahoo publishes tutorial for Flash but not SL. I am trying to understand how to process the JSON reply from the server, which looks something like this: var YAHOO=window.YAHOO||{}; YAHOO.namespace=function(_1){ if(!_1||!_1.leng...

Problem when inserting an entity in the database through a service

I have a Silverlight application and I'm using a WCF service to access my database information. For this I'm using EntityFramework. I have a class Items (mapped on my DB table Items) which has an ObservableCollection of Keywords (class mapped on my DB table Keywords) objects. From the interface I create an Items object with all the pro...

Silverlight Out of Browser Host

What is hosting the Silverlight application when running out of browser? I can imagine on Windows it uses some very thin IE host but what is it actually running for Windows and Mac machines? ...