silverlight-4.0

TreeView inside AutoCompleteBox's popup

Hi, Inspired by this post, I'm trying to use a TreeView inside the AutoCompleteBox's popup in order to show hierarchical data. Here's what i did: I Made my own TreeView that implements ISelectionAdapter (not sure it's perfect) Edit AutoCompleteBox template and change the selector to my treeview Try Bind my ViewModel to it Unfortuna...

Hosting .Net 4 website as child of .Net 3.5 website

I am trying to add a Silverlight application running on the .Net 4 Application Pool as a child application of a ASP.Net application running on the Classic .Net Application Pool. I receive several configuration errors due to the Silverlight application inheriting configuration elements from the parent application. Does anyone know of an...

How to debug silverlight applications?

I want to trace the code when the data is loaded. (VS2010 Silverlight4) <riaControls:DomainDataSource Name="domainDS" HorizontalAlignment="Left" VerticalAlignment="Top" QueryName="GetPlanQuery" LoadedData="domainDS_LoadedData"> ... </riaControls:DomainDataSource> In the code behind: private void domainDS_LoadedData(object sender, Loa...

System.Property<T> refactored out of Silverlight 4 System.dll?

I'm in the process of migrating a Silverlight 3 project to Silverlight 4 (plus RIA Services v1.0 RTW and the latest drop of Rx.) I believe I've dealt with all the dll refactoring and namespace change issues but one. In the Silverlight 3 project I'm using System.Project however System.Project is missing from the Silverlight 4 system.d...

WCF net.tcp server disconnects - how to handle properly on client side?

I'm stuck with a bit of an annoying problem right now. I've got a Silverlight 4 application (which runs OOB by default). It uses WCF with net.tcp as means of communicating with the server. The client uses a central instance of the wcf client proxy. As long as everything keeps running on the server side, everything's fine. If i kill the...

VS2010 Ultimate. Why do I just see "Silverlight 3". Where's 4?

What do I have to download to be able to set my Silverlight app to version 4? I already downloaded wat I thought was the latest version of the Silverlight developer runtime ...

Silverlight and M-V-VM - Where should a timer live?

I'm creating a simple monitoring tool in Silverlight. It talks to a web service to retrieve the status information and store it in the ViewModel. This needs to happen once per minute so I'm going to add a timer for this purpose (probably a DispatcherTimer). My question is, where should the timer go in an M-V-VM architecture? In the View...

Silverlight HttpWebRequest.Create hangs inside async block

I am trying to prototype a Rpc Call to a JBOSS webserver from Silverlight (4). I have written the code and it is working in a console application - so I know that Jboss is responding to the web request. Porting it to silverlight 4, is causing issues: let uri = new Uri(queryUrl) // this is the line that hangs let request : HttpWebRequ...

Rearrange items in ListBox

Hey, I have a ListBox with a number of ListBoxItem objects. What is the best way to allow users to rearrange the items by dragging and dropping? Do I have to use StackPanels instead? Thanks for any suggestions ...

CSS styles in Silverlight

I know styling is possible in SL, but I have a large web app that has both HTML and SL so it would be really useful if they could use the same style sheet... Is it possible? Thanks. ...

Creating a fixed axis for Silverlight Toolkit charts

Every example I see of a series in a Silverlight chart fromt he toolkit has a binding for bothe IndependentValueBinding and DependentValueBinding. In my code I want a fixed axis for the categories (Independent) - so every value get's "X" perhaps. Is there a way to do this? Essentially I have ten bar series in one chart and I want them a...

Why is Silverlight chart binding occasionally not updating data?

I've got ten bar series in a chart from the Silverlight toolkit. Every 15 seconds the data they are linked to is updated. Occasionally one of bars does not move when its value changes. It may fix itself on the next refresh 15 seconds later. Five textblocks bound to the same data do update. ...

Linking controls from other DLLs

Dear SO, I'm having some issues with Silverlight 4/ MEF. I have a basic framework setup with a Silverlight Navigation app at the core utilizing MVVM where i can. Image link to the diagram for clarification(not including all the VM classes) The main app (Desu) contains some pages and controls that export en import nicely. I dynamicly l...

Is it possible to run Silverlight code using the runtime of the full .NET framework?

To integrate with the current system for continuous integration, we want to use NUnit for testing (non UI) Silverlight code. Doing this means executing Silverlight code using the runtime of the full .NET framework which usually works just fine as long as not actually using Silverlight specific classes such as the visual elements or Depen...

Using Live ID for authentication in a Silverlight 4 Out of Browser App

Hi, Is it possible to use Live ID for authentication in a Silverlight 4 Out of Browser App. If it is do you know of any sample code. Thanks ...

How do I use DomainContext.Load to populate properties of my ViewModel?

I have a Silverlight page that gets its data from a view model class which aggregates some data from various (RIA services) domain services. Ideally I'd like the page to be able to data bind its controls to properties of the view model object, but because DomainContext.Load executes a query asynchronously, the data is not available when...

How to bind data in silverlight? In case I don't know which columns would be retrieved from database in design time.

I am trying to bind data from database to datagrid in silverlight. When I get typed data from DB, it is no problem since I use List<'EntityObject'> collection object for example. However, sometimes I need data which I won't be able to know how many and what columns will be generated in design time. In this case, I cannot use typed colle...

Why does my binding break down on SilverLight ProgressBars?

I asked a similar question about charts but I have given up on that and I am using progress bars instead. Essentially, I have ten progress bars in a Silverlight control. Each is showing a different value and updating every couple of seconds (it's a process monitor). Each progress bar has the same minimum value and maximum value so the b...

Starting out Silverlight 4 design

I come from mainly a web development background (ASP.NET, ASP.NET MVC, XHTML, CSS etc) but have been tasked with creating/designing a Silverlight application. The application is utilising Bing Maps control for Silverlight, this will be contained in a user control and will be the 'main' screen in the system. There will be numerous oth...

Silverlight: Use TransitioningContentControl to animate a grid from read-only to edit mode

Hi, I am using Silverlight 4.0 and I have a simple grid in which some user related details are shown, like name, phone no. address, etc. Initially the textboxes are in read-only mode. Textboxes become editable when a user clicks on "Update Info" link (in the same grid). Now I am trying out a simple transition effect from "read-only" to ...