silverlight

Silverlight - checking for a 302 http response

Does anyone know if it is possible to discover that a response from a WCF call in Silverlight resulted in a 302 (temporary redirect). The 302 is generated because our service is behind ISA and the user session timesout. The Silverligt app remains loaded in the browser and the usre interacts to make a WCF call which fails. I can get a ...

Silverlight: Threads / Delayed Actions / Asynchronous invocations/events

Hi, I've got the following scenario: when a user moves the mouse out of a popup, I want an animation to happen, and five seconds later, I want to remove a PopUp. This is the code I expected to do this with is: private bool leftPopup = false; public void AnimatePopupOut(object sender, MouseEventArgs e) { myAnim.Begin(); (new Thre...

Creating a shortcut to IE in a Visual Studio Setup Project

Hi I'm creating the installer for a Silverlight app of ours. The app will run on the local machine, in internet explorer in kiosk mode and will be started from a desktop shortcut. I'm having trouble creating the shortcut with my Setup Project in VS 2008. What I need to end up with is a shortcut on the desktop with this "C:\Program Fi...

Expression Blend Books?

Are there any good Expression Blend books out there yet? The help file is better than I'd expected it to be. But I'd really like to get ramped up faster. ...

PropertyChanged notification for calculated properties

I'm developing an application in Silverlight2 and trying to follow the Model-View-ViewModel pattern. I am binding the IsEnabled property on some controls to a boolean property on the ViewModel. I'm running into problems when those properties are derived from other properties. Let's say I have a Save button that I only want to be enabled...

Is there a mismatch between MVVM and the possibility to modify the View's component tree?

Having read all the StackOverflow entries regarding Model-View-ViewModel architecture along with most of the readily available resources on the net I have come to the conclusion that it is the de-facto standard for building SOLID Silverlight apps. I started to plan my next application using this architecture. One of the requirements for ...

Can you swap VisualStateManager for MultiTrigger in WPF?

This really relates to creating a library that works across both WPF and Silverlight. The WPF Toolkit includes an implementation of the VisualStateManager included with Silverlight, and if the VisualStateManager can do what the MultiTrigger in WPF does, that solves my problem. I just found an article on MSDN Blogs discussing the use of ...

Silverlight Combobox Databinding race condition

In my quest to develop a pretty data-driven silverlight app, I seem to continually come up against some sort of race condition that needs to be worked around. The latest one is below. Any help would be appreciated. You have two tables on the back end: one is Components and one is Manufacturers. Every Component has ONE Manufacturer. ...

How to build the ViewModel in MVVM not to violate the Single Responsibility Principle?

Robert Martin says: "There should never be more than one reason for a class to change". Let's consider the ViewModel class which is bound to a View. It is possible (or even probable) that the ViewModel consists of properties that are not really related to each other. For small views the ViewModel may be quite coherent, but while the appl...

What type of security has been used with WCF on Azure that would be compatible with Silverlight?

Has anybody gotten any type of security to work with WCF on Azure that would be compatible with Silverlight? I have already tried transport security on basic http binding, but it does not work. ...

Definitive source(s) for the difference between Silverlight and WPF

Does anyone know of a definitive guide or guides that tells us the differences between WPF and Silverlight. I know that Silverlight, for example, doesn’t have all the controls and all the namespaces that WPF has. Is there a source which tells me exactly what controls and namespaces are absent in Silverlight? There are other things th...

Silverlight and VS 2005 or VS 2008 Express Edition

Is is possible to create silverlight content in C# using Visual Studio 2005 Professional or Visual Studio 2008 Express Edition? I can't find an answer on Microsoft's web site. Thanks for any help! ...

Silverlight page not catching input events

I have been attempting to handle the KeyDown event of a UserControl (page) in my Silverlight application, but there seems to be some strange behaviour on the part of Silverlight user input functionality. The event is not getting raised under any circumstance. I have even tried attaching the event handler to each container control within ...

force firefox to get most current version of silverlight app

This question has been asked before but 1) the user never accepted an answer 2) none of them stand out as better than the others (votes-wise) and 3) the asker seems to have forgotten about it. So I'm going to ask it again so I can get to an accepted answer. And some of the users in the thread have said that some of the solutions didn't w...

Are there any open source mapping / GIS frameworks written in Silverlight?

I've been looking for an open source mapping / GIS framework along the lines of OpenLayers but written in Silverlight. Unfortunately I have not been able to find one. Preferably it would be able to consume services (e.g., maps, tiles, geocoding services) from the major map / GIS providers, including (in order of preference): MapServ...

Community Site with Blogs and forums - Oxite, DNN or CS?

Hi all, I need to do a community site with blogs and forums, and was looking at 3 options: Oxite, DNN and community server. The frontend will be a mixture of ASP.NET and Silverlight. LiveID integration would be a plus. Any suggestions? Thanks. ...

Recommended Prism v2 Silverlight/WPF Project Structure

I'm currently tasked with teaching all the developers, in the company I work in, about Silverlight (v2). The only problem is that I don't have any real Silverlight experience myself. Of course I've studied all the technical details about stuff like databinding, layout etc. so I can help my colleagues. But one thing that is hard to find a...

Generic method to find all TextBox controls in Silverlight

Good Day, I have several Silverlight controls on a page and want query all the controls that are of type TextBox and have that working. Now the Silverlight form I'm working on could have more TextBox controls added. So when I test to see if a TextBox control has a value, I could do: if (this.TextBox.Control.value.Text() != String.Emp...

XDocument.Descendants() not returning any elements

I'm trying to bind a Silverlight DataGrid to the results of a WCF service call. I was not seeing the data displayed in the grid, so when I ran through the debugger, I notice that XDocument.Descendants() was not returning any elements even when I was passing in a valid element name. Here is the XML that is passed back from the service: <...

YUI MenuBar positioned behind a ASP.NET Silverlight Control

Using the YUI Menubar, when the items drop down they appear behind a ASP.NET Silverlight Control. I am not using YUI layout. I've already tried setting the z-index:99 and the position:relative for in menubar css, as well as setting the div's z-index:-1 and position:relative. Any ideas? ...