silverlight

Rhino Mocks vs Moq for Silverlight

We are Silverlight Unit Test Framework for testing. Which one will be better for my team? Rhino Mocks or Moq. No one has any experience with using a framework like this. What are the pros and cons of using each framework in this environment? ...

Silverlight MediaElement and UI Virtualization

I have an application that contains many controls on a panel, each with its own MediaElement playing video. I have been looking into the new UI Virtualization features of Silverlight 3 to improve performance when scrolling through many of these controls in a smaller view port. From my experience, it is my understanding that any time a M...

Creating Test EntityList objects - RIA Services

I'm creating an EnityList to do some client side testing with my ViewModel. Something like: var people = new EntityList<Person>() { new Incident() {Age = 55, Name="Joe"}, new Incident() {Age=42, Name="Sam"} }; The problem is that the implicit (and explicit) Adds fail. The entitylist is created as read-only...

Silverlight isolated storage

Wanted to know if there was a way to take a folder that is in isolated storage, zip it and make it available for a user to download the zipped file. ...

opening a silverlight childWindow overlay on the viewport of the browser.

I would like place a silverlight contol on an HTML page --- something about the size of a typical calendar control. However when the user selects a day on the control a bigger canvas opens up on top of the containing page --- something like a modal dialog box that you might find with the AJAX. I'm wondering if this is even possible with...

RIA with ASP.NET

Does it make sense to use RIA Services as a service provider to an ASP.NET web application as opposed to just a Silverlight application? We have an infrastructure constraint that the services and the consumer are on different physical machines thus need to cross a service boundary. We have not seen any examples of using ASP.NET as a cons...

How to find the dates shown in a Silverlight Calendar control?

Hi all, I have a Silverlight application that contains a calendar control. I'm wanting to 'black out' days for which we have no data available, using the BlackoutDates property. So I'm looking for a simple way to find all the dates that are currently visible (assuming a Month view, for now). I can use a brute force method, say taking...

Silverlight data binding in the code behind.

I am doing something like this in a Silverlight 3 datagrid: for (int x = 0; x < ThisForecast.Periods.Count; x++) { var TextColumn = new DataGridTextColumn(); TextColumn.Header = ThisForecast.Periods[x].Name; TextColumn.Binding = new Binding(String.Format("Periods[{0}].Quantity", x)); TextColumn.Binding.Mode = BindingMode.Two...

Can you remove an item from a List<> whilst iterating through it in C#

Can you remove an item from a List<> whilst iterating through it? Will this work, or is there a better way to do it? My code: foreach (var bullet in bullets) { if (bullet.Offscreen()) { bullets.Remove(bullet); } } -edit- Sorry guys, this is for a silverlight game. I didn't realise silverlight was different to th...

DSA public key system verification with Silverlight

I need to verify a DSA signature in Silverlight and since the runtime does not include the System.Security.Cryptography.DSA class I was wondering if anyone has an alternative? ...

What are the best silverlight themes?

Please suggest some examples of silverlight themes..to get more deep into silverlight, where i can found them? ...

Is RIA Services right for our Silverlight app at this point?

Hi, I'm looking at Silverlight architectures and RIA Services looks interesting, but I am a bit concerned about its prelease status and how the feature set will change. We need our client app to be as responsive as possible over a slow network link, so a high priority is a solid sync system for pushing model state changes from the cli...

Upload a folder in ASP.NET of Flash or Silverlight

Dear all Is there any way to upload entire folder (a folder) in asp.net? Is there any way to upload in Flash or Silverlight? ...

What are the methods of communication between Silverlight and server side?

Background: I have basically no experience in Silverlight, i was asked to start reading up on the tech and provide some insight for client which may want to rebuild the UI of their .Net Desktop application in silverlight. So my experience is what i have been able to google (which surprisingly is not easy) and the few tutorials i have don...

Silverlight 3 - Out of browser HtmlPage.Window.Navigate

Silverlight 3 allows you to run your application out of the browser, which installs a link on your desktop/start menu. The problem is we are currently using System.Windows.Browser.HtmlPage. Window.Navigate(new Uri("http://&lt;server&gt;/&lt;resource&gt;"), "_blank") to load a URL into a new browser window (it's to provide a 'print ...

Structuring a Silverlight Application with Several Modules

I'm working on a Silverlight page which has several modules for querying and plotting data from a Database. Each of these modules is quite different and will each need their own control panels and data displayed in different formats, they will basically be unrelated, but we want them accessible from the same page. My question is, how sh...

Compare between FLEX, JavaFX and Silverlight

Has anyone built application to compare the performances of them? (performances like speed, different between GUI etc.) If no, Can anyone recommend me which function (in each of them) should I use to compare them? Thanks ...

Silverlight 3 Checkbox Listbox bug when scrolling?

I've spent a few minutes searching on Google and have not found anything related to this issue I'm having: Today I upgraded to the Silverlight 3 SDK and converted a project that I'm working on. I then noticed a bug in my program with a Listbox that has a Checkbox as its DataTemplate. When one or more items is checked, and I scroll up ...

Database Mocking on a large system in Silverlight and RIA Services

I am using Silverlight, Ria, and the Silverlight Testing Framework. I am trying to build a mock database and have run into a few issues. First the example on the RIA site does not use the silverlight testing framework so I am not able to use it. Second The other example that I have tried does not seem very scalable. Since I need to mo...

silverlight math performance question

Is there some reason that identical math operations would take significantly longer in one Silverlight app than in another? For example, I have some code that takes a list of points and transforms them (scales and translates them) and populates another list of points. It's important that I keep the original points intact, hence the sec...