silverlight

Is this list a correct understanding of Microsoft's current application deployment options?

I'm trying to get my head around the many application deployment options which Microsoft currently offers. Doing a little research turned up dozens of confusing terms: "WPF App" "ClickOnce App" "WPF ClickOnce App" "MSI App" "XBAP App" "XBAP App deployed with ClickOnce" "Installed ClickOnce App" "WPF Web App" "ASP.NET Web App" "ASP.NE...

LINQ to XML, ORM or someting "Completely Different"?

I'm working on a Silverlight Project with all the features and limitations that entails. This is an update to a previous product. The intent, in order to be quick to market, is to maintain as much of the back-end (webservices, database, etc..) as at all possible. Our mandate it to only touch the back-end if there is no other way. We'...

How can I handle an ASX stream which uses features that Silverlight doesn't support (e.g. REPEAT)

I'm trying to display a video feed which is provided as a server side playlist (ASX) by another party. The playlist contains some unsupported features, such as repeat: <ASX VERSION="3.0"> <REPEAT COUNT="4"> <EntryRef href="http://some-ad-network.com/ad.asx" /> <Entry> <Ref href="http://video-host/content-primary-source"&...

Embed resources (png,jpg,mp3,wmv,etc) in silverlight xap file and reference from xaml

Basically I would like to be able to do something like this in my xaml: <Image Source="Resources/logout.png" /> and have it find Resources/logout.png as a file in my xap file, without going back to the web server. I also want to be able to rebuild my xap file on the fly, so placing it as a resource in a dll is not acceptable. Any id...

Is there any C# Dynamic Mock framework available for Silverlight?

I want to use dynamic mocks when testing a Silverlight application. I have tried Moq and Rhino but these frameworks assemblies cannot be added to a silverlight project as they are incompatible with the silverlight runtime. Is there an existing silverlight mock framework (or patch for moq) that will allow me to use mock objects in a sil...

Sharing C# code between Windows and Silverlight class libraries

We wrote a small Windows class library that implements extension methods for some standard types (strings initially). I placed this in a library so that any of our projects would be able to make use of it by simply referencing it and adding using XXX.Extensions. A problem came up when we wanted to use some of these methods in Silverligh...

Connecting two shapes together, Silverlight 2

I'm looking to connect or glue together two shapes or objects with a Line. These shapes will be generated dynamically, meaning I'll be calling a Web service on the backend to determine how many objects/shapes need to be created. Once this is determined, I'll need to have the objects/shapes connected together. The method signature may lo...

Can I solve Silverlight color rendering differences in IE7/8?

I have a Silverlight control that tries to have the same background as the underlaying div, but I'm facing color difference problems in IE7/8: That doesn't seems to be a problem for Firefox. Does anyone has a tip how to solve this problem? I try to avoid using the windowless mode in Silverlight and alpha transparency as 1st) it's s...

Intermittent InavlidCastException in a UserControl.InitializeComponent()

Thanks in advance for any help with this. It is driving me nuts. Here is the setup: I have a Silverlight Control Library "Controls", in which I have a customer control defined for presenting dialogs: public class Dialog : ContentControl { public Dialog() : base() { DefaultStyleKey = typeof(Dialog); } <......

are there any gotchas for hosting a Silverlight app on a Linux server?

I'm building a new Silverlight app for a photography studio. I was about to say "you have to have a Windows-based server hosting it" and then I thought, wait is that right? Looks like it's not. So I could point him toward a Linux host. I know you have to register the MIME types (from a different SO thread). Are there any other caveats ...

Unable to kill a worker thread in Silverlight

Hello, I'm working on a multi-threaded Silverlight application. The application has two threads: Main/UI and a background working thread. The UI thread should be able to kill the background thread, like so: private Thread executionThread; .... executionThread = new Thread(ExecuteStart); executionThread.Start(); .... executionThre...

Silverlight Toolkit TreeView control and expandability

Is it possible to configure the TreeView control in the Silverlight tookit such that some or all of the hierarchy levels will be automatically expanded and ideally something that can't be collapsed at that level. I'm using this control in large part due to the ease of handling hierarchical data and the ease with which I CAN expand/colla...

How do I get PropertyChanged events to bubble up?

I have a hierarchy of objects (objects A, B), each of which implements INotifyPropertyChanged such that... A has a member of type B, B has a member of C, C is of type bool When C changes, its PropertyChanged event gets fired, however this does not fire B's property changed event. And therefore A does not react to B's change. Is there ...

Dynamic DataTemplate switching

I am trying to achieve the same behavior as indicated in the following post. The trouble is this post solves the problem for WPF. http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4fd42590-8375-46d0-b7bc-6c217df0f0ba/ Any ideas on how to do this in Silverlight 2.0? Thanks Chris ...

Databinding Silverlight Comboboxes with Lists of Objects - working but ugly.

I'm developing a business application, using Silverlight for the UI and a WCF webservice for the back-end. In the database I have a number of lookup tables. When the WCF service returns a business object, one of the properties contains the entire row out of the lookup table instead of just the foreign key, so in the UI I can display thin...

Can you access sceen display's DPI settings in Silverlight?

Is there a way to access the screen display's DPI settings in Silverlight? If so, how? Thanks, Jeff ...

Why can't I double-click a button to create an event handler in Silverlight 2.0?

In WPF, ASP.NET, WinForms, I create a button, double-click on it and fill in the event handler. In Silverlight (with Visual Web Developer 2008), I make a button, double-click it but nothing happens. Is this not supported when writing Silverlight applications for some reason? Do we have to write these event handlers by hand? ...

Do users have problems adopting Silverlight?

My group is thinking about switching our platform for web UI from ASP.net to Silverlight for several reasons. To be clear, these are business websites that provide a service to our users, we develop and host them ourselves. Has anyone switched their business / intranet web site from a traditional server-based web technology such as ASP....

Silverlight and multiple viewmodels

I'm writing a Silverlight app using the MVVM pattern. I have a main view (UserList.xaml) and corresponding vm (UserListViewModel.cs). This is used to list a collection of users. I also have a UserControl (User.xaml - invoked as a modal dialog) that is used to add details for a new user. This also has a viewmodel of it's own (UserViewMode...

What are some concrete examples of using namespaces Silverlight/XAML?

In Silverlight/XAML you have namespaces such as: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" and so elements have namespaced attributes like this: <TextBlock x:Name="theMessage" Margin="10">Testing...</TextBlock> When would this be a benefit for me? Would I at some point create another namespace, e.g.: xmlns:edward="ht...