silverlight

Hosting Silverlight Out of Browser Application in Sharepoint 2007

I am trying to host a Silverlight 3 Out of Browser Application in Sharepoint 2007. My application gets displayed fine; but when I install it as out of browser; and try to run it from desktop; only blank screen is displayed and nothing happens onwards. The XAP file is kept in _layout/MyFolder/MyApp.xap (Under 12 Hive). Am I missing anyth...

SilverLight - MVVM binding viewmodel property to datagrid column

In my SilverLight application, I have a property in my ViewModel called 'vmProperty' and a list called 'dgSource'. I bind my dgSource to the datagrid as ItemsSource at which point each datagrid row's datacontext changes to each item in dgSource. One of the columns, say a checkbox column, needs to bind to vmProperty. But since the ViewM...

Does WCF Polling Duplex Binding exist for non Silverlight clients?

Does WCF Polling Duplex Binding exist for non Silverlight clients? ...

Silverlight 3 - How to "refresh" a DataGrid content?

I have the following scenery: 1 using System; 2 using System.Windows; 3 using System.Windows.Controls; 4 using System.Windows.Documents; 5 using System.Windows.Ink; 6 using System.Windows.Input; 7 using System.Windows.Media; 8 using System.Windows.Media.Animation; 9 using System.Windows.Shapes; 10 using Sys...

Silverlight Relating Two Datagrids

Hi, My question: How do I bind the SelectedItem from a primary datagrid to the ItemsSource for a secondary datagrid? In detail: I have two datagrids on my view. The first shows a collection of teams and the second shows as list of people in the selected team. When I select a team from the grid I can see that the SelectedTeam propert...

Fire an event every second

Quick question: I need an event that fires every second, just like the timer1_timer() event of VB6. I'm using VB9/Silverlight, creating a small sidebar gadget. Thanks in advance~ ...

How to create a Silverlight Screencast?

I would like to create a Screencast that can be played by a Silverlight player or embedded in a Silverlight application. What program can I use to create the screen cast and how do I use the output with Silverlight? ...

where did PixelFormats and WriteableBitmap.Lock go in Silverlight3?

A few months ago I built some online samples like this one from Jeff Prosise that use the WriteableBitmap class in Silverlight. Revisiting them today with the latest Silverlight3 installer (3.0.40624.0), the API seems to have changed. I figured out some of the changes. For example, the WriteableBitmap array accessor has disappeared,...

Declaring list and binding property values via XAML for a custom silverlight control

I feel like I've missed something obvious, but when creating a custom control in Silverlight I can declare properties as public and they will be exposed when making XAML declarations, so I can easily do something like this: public class MyControl : UserControl { public string Title {get; set;} } And this: <local:MyControl Title="...

Silverlight InitParams prompting to install Silverlight in Mozilla and Chrome

I have a problem with a Silverlight control's behavior in an ASP.NET page. The control works OK within IE, but in Mozilla, I get the 'install Microsoft Silverlight' message. After some try/fail sessions, I came to the conclusion that I get that message in Mozilla only if I use the <param name="InitParams"/> param in my Silverlight contr...

Pass StreamReader to WCF service from Silverlight's Async Call

Hi, I want to import records from csv file to the DB from Silverlight front end. I am using WCF service to perform the DB operations. When I pass the entire file path (hard coded), I am able to add records to the DB, but as OpenFileDialog in Silverlight doesn't allow to obtain the file path's (due to security reasons), I tried using WCF...

How do I show only the graph of a chart (No Legend, No Title, Minimum Space Used) in Silverlight 3.0?

I'm writing a Silverlight application that is showing a pie chart of completed items as an item in a DataGrid. I currently can get the graph to show as an item in the DataGrid using a DataGridTemplateColumn. My problem is the grid blows out the height of the data row because it has a title and a legend and a lot of allocated whitespace...

How to maintain state in silverlight?

When I resize my aspx page hosting the silverlight app, I lose state on all silverlight controls. How do I maintain state on silverlight controls? ...

Datagrid cannot sort on some fields - object, object subfield, base type

When using the Silverlight DataGrid with an IList derived data source it is possible to click a column to sort by it, assuming the CanUserSortColumns/CanUserSort properties are not false. However I'm finding some edge cases cannot be sorted by - the values are shown, but clicking the column has no effect. The first edge cases would see...

Silverlight 3 WCF Service `CommunicationException` Server returned error: NotFound

I have a Silverlight 3 application, which 95% of the time is successfully requesting data from a WCF Service (in the same webapp) and displaying it. This happens infrequently, usually if I hit the service a bunch of times quickly, but sometimes it'll happen on a single lone request. Every once in a while, if I request a lot of transac...

Best way to call back/noftify parent page of an event?

In a Silverlight 3.0 app, there is a shell page that serves as the navigation piece for a number of child controls and other Silverlight pages. The Silverlight pages are included in the shell page via the Frame object (). The pages are rotated dynamically via the code-behind file, so there isn't a direct reference to them in the xaml. ...

How to bind a generic list to a datagrid and dataform?

Now my code is public class Leave { public string wContId { get; set; } public DateTime wContratStartDate { get; set; } public DateTime wContratEndDate { get; set; } public string wNameFst { get; set; } public string wNameLst { get; set; } public string wEmpId { get; set; } public string wSeqId { get; set...

ScaleTransform applied to elements in stackpanel causes "white" space

When I add UserControls that have a ScaleTransform applied to them to a StackPanel, I see that there is extra space in between the controls as though the transform was not applied. From what I understand, a transform doesn't actual change the width/height of a control, but rather changes the render width/height. If this is the case, ho...

Flash/silverlight and multiplayer games

Hello, I wonder if it is possible to build a game with flash/silverlight that has multiplayer (let's say 2 players) features with lots of realtime interactivity between players. Dofus (Ankhama Games) uses flash. In this interview, the developer says : "Pourquoi Dofus est un jeu au tour par tour ? J'aimerais pouvoir dire que c'est ...

cross-domain problem

Hello, I am using a silverlight with wcf and when I use the .web project then it runs but when use the silver light project to run the following exception throws: An error occurred while trying to make a request to URI 'http://localhost:9000/Services/BLWCFSvrc.svc'. This could be due to attempting to access a service in a cross-domain ...