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)...
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...
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.
...
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...
...
Is it possible to customize the row group header in a datagrid ?
...
This works fine, and correctly inserts non-breaking spaces into the string:
<TextBlock Text="Non Breaking Text 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 " ". It does indeed replace spac...
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...
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 ...
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
...
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...
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...
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
...
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);
...
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?
...
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?
...
What is the best way to detect Ctrl+V in Silverlight?
I want to detect Ctrl+V, to get access to the Clipboard.
...
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...
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...
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...
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...