silverlight-4.0

How to play non buffered .wav with MediaStreamSource implementation in Silverlight 4?

Background I'm trying to stream a wave file in Silverlight 4 using MediaStreamSource implementation found here. The problem is I want to play the file while it's still buffering, or at least give user some visual feedback while it's buffering. For now my code looks like that: private void button1_Click(object sender, RoutedEventArgs e)...

[PRISM2] Added view does not appear on screen

Why my "mainRegion.Activate(view);" doesn't display the view on screen? It only works if I remove the default view that registered (RegisterViewWithRegion) in ModuleInit.cs though I don't put .Activate() after I added a View. But a problem occurs if I move to other module, and get back to module which default view has been removed, I ge...

Display default text in combobox in Silverlight 4

I want to show the default text in the ComboBox as 'Select'. I also want to the bind the items in the ComboBox to the Collection. When the user selects any item from ComboBox the 'Select' text should not remain as an item in the ComboBox. How can I do it? Thanks. ...

Silverlight 4 - how to skip building localized resources at Bin / Debug

Is it possible to skip building localized resources at Bin / Debug foler? There are many folders for languages but my application work only in English and these folders aren't required. I think it could speed up build process. Right now this application contains about 40 different projects and building in on VS2010 takes ages... ...

Custom RowGroupHeader ?

Is it possible to customize the row group header in a datagrid ? ...

Non breaking space in XAML vs. code

This works fine, and correctly inserts non-breaking spaces into the string: <TextBlock Text="Non&#160;Breaking&#160;Text&#160;Here"></TextBlock> But what I really need is to replace spaces with non-breaking spaces during data binding. So I wrote a simple value converter that replaces spaces with "&#160;". It does indeed replace spac...

Silverlight: After adding table no datacontext classes are available for the new DomainService class

I'm using a Silverlight 4 WCF RIA Services demo application that uses LinqToSql, that works well. I add a new database table, move the new table to the LinqToSql designer and build the project I add a new DomainService class I get a dialog with the only option to create an empty DomainService and no DataContext classes are available...

SL 4 and WCF DataService: InvalidOperationException -> SecurityException

Hello, you will think: "This problem has been solved many, many times. So why doesn't he use Google?" Please, believe me, I tried everything. I'm dealing with this problem since last week. I read many blogs and searched the MSDN. But I don't get it. So here is the problem. There is one Silverlight 4 app and a WCF DataService, both are ...

How to debug a webservice hosted by an IIS in a Silverlight application

Anybody knows how to debug a web service hosted by an IIS in a Silverlight 4.0 application? My IIS version is 7.5 and my operating system is windows 7. Can you please specify the steps on how to? Thank you so much ...

Silverlight File download from client

I have a Silverlight application that implements some basic CRUD operations on a fairly flat data set. The application loads all the data onto the client to allow for quick editing (this is a fairly small data set no more that a couple K). I would like to allow them to download the file as a CSV so they can edit the data locally. I kn...

Silverlight 4 Binding based on what is returned from a converter

I think the easiest way to explain this is by example. I have a Datagrid with a data context of a list of People Objects: People{ string Name; int AstroSignCode; } I am using a code to store the astro sign because the values will be persisted in a database. I cant just use the astrology Object. Then I have a Text Column which binds t...

Where are user credentials persisted to when creating a Silverlight Business Application Template project ?

Hi, The Business Application Template in Silverlight 4.0 generates authentication and user management (add user) features. Where is the info stored ? I presume it goes back to the server and then I have my pick on the server side - AD, LDAP, SQL Server, etc. ? Is this correct ? Thanks, Scott ...

Silverlight 4.0 - HttpWebRequest throwing ProtocolViolationException.

I am getting a "System.Net.ProtocolViolationException: Operation is not valid due to the current state of the object." error when trying to call var request = (HttpWebRequest)WebRequest.Create(uri); request.Method = "GET"; request.ContentType = "text/xml"; request.BeginGetRequestStream(RequestCompleted, request); ...

Is there a way of resizing controls in a Silverlight 4 OOB app?

I am new to Silverlight/XAML so apologies if this is an obvious question. How can you detect when the OOB window is resized and resize your own controls to fit the new window size? ...

How Do I populate Silverlight 4 Charts using aggregate queries in WCF RIA Services?

I need to get counts to populate charts in Silverlight 4 and I am having a bit of trouble getting data back from my Domain Service mostly because I am not sure how to use aggregate query syntax. Has anyone had any luck populating charts in Silverlight 4 using aggregate (SUM, COUNT, etc) linq queries? ...

How to detect Ctrl+V in Silverlight 4?

What is the best way to detect Ctrl+V in Silverlight? I want to detect Ctrl+V, to get access to the Clipboard. ...

Silverlight 4 / RIA book

I'm looking for a Silverlight 4 book that includes best-practices (Silverlight 4, WCF RIA, MVVM, audio / video, localization, security, etc.) How-To-chapters for WPF developers (how to solve the same problem with WPF, e.g. Encoding.ASCII), differences in API between .Net Frameworks and Silverlight assemblies designer perspective (Exp...

Upgraded to Silverlight 4 cause System.Security.SecurityException

Trying to open a file dialog but I get an exception when calling ShowDialog. This pice of code have always worked fine but I think when I upgrade to Silverlight 4 it caused some problem. Code: var dlg = new OpenFileDialog { Filter = "CSV Files (*.csv)|*.csv" }; if (dlg.ShowDialog() == true) { Upload(dlg.File); } Exception: Di...

Is it possible to launch a Silverlight 4 OOB application from a web page?

I'm planning to build a download manager application and would like to be able to launch the application when a user clicks a button the site. The application would obviously already need to be installed on the client machine. There are a few reasons why this needs to be written using Silverlight, but they're not really relevant to the...

Resolve Concurrency Errors on Silverlight Client with WCF RIA Services

I have a Silverlight 4 project using WCF RIA Services RTM. Most of the RIA functionality is working, but I'm having a problem with concurrency checking. The server is correctly checking concurrency and passing a DomainOperationException to the DomainDataSource.SubmittedChanges event. I'm handling that even and enumerating the Entities...