silverlight

Silverlight 4, WCF RIA Services generated incomplete code

I started with the Silverlight Business Application Template I will call this MyApp and MyApp.Web I added a new SL application project. and added a ria link to the existing web project. I will call this Loader This new SL app is the entry point of my solution, and basically loads the mainpage from the other xap file. Checks for u...

Listbox within Listbox and scrolling problem in Windows Phone 7 Silverlight

I have a Windows Phone 7 Silverlight application that has a listbox and within the item template it binds another listbox. <ListBox x:Name="CouponsGrouping"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="Expires" /> <ListBox ItemsSource="{Binding Coupons}" Margin="0,10,0,0"> <L...

Check internet connection in Silverlight

I'm writing a Silverlight 4 application and would like to check when opening the installed out of browser application, whether there is a valid internet connection (to then download some data from my website). What is the best way to do this? I realise that I could put a try catch around a WebRequest but that seems a bit hacky to me. ED...

Sending custom DTO via ria services

Hi I have class to sen via ria service. class look like [DataContract] public partial class AttributeNode { [DataMember] [Key] public int Uid { get; set; } public AttributeNode() { this.Children = new List<String>(); } private String text; [DataMember] public String Text { g...

Possible memory leak in Silverlight Toolkit Charting component - help!

Hello, Background: I've been using the November 2009 release of the Silverlight Toolkit Charting components in a monitoring application that updates multiple line charts every 10 or so seconds. Each chart has a binding to an ObservableCollection. DataValuePair is simple class containing only two properties (DateTime and int). On each...

Serializing Entities with RIA Services

I've got a Silverlight application that requires quite a bit of data to operate and it requires it all up-front. It's using RIA Services (and the Entity Framework) to get all that information. It takes 10-15 seconds to get all the data, but the data only changes about once a month. What I'd like to do is toss that data into Isolated Sto...

Combining two semi-transparent ellipses

Hi everyone, Have a strange one. I have two ellipses that have an opacity of 0.7. What I'd like to do, is where the two ellipses cross, show a different color. In an old WF image I'd have run through each pixel and swapped colours, but I'm not sure how to do this with a layer in Silverlight. Anyone have any ideas? Thanks! ...

Advice - How to view assembly code or debug into DLL or what's being loaded?

I am not sure how to pose this question, but basically I want more information on the following error and want to know what these assemblies contain. I am using VS 2008 and Silverlight 3 and basically I have 2 SL projects, with one referencing the other for a resource. I know the file is there, but don't know why I am getting the error...

Embed Silverlight app in a jsp portlet

How to embed a silverlight app in a jsp portlet? Rgds ...

While using silverlight, is there a way to use a button to change the webpage?

I have an ASP.MVC application which has a silverlight app inside. I want to change the page when I click one of my buttons. Is there a way to make it? ...

AutoMapper Ignore an item in a collection based on a property value in the source

I'm mapping an ApplianceViewModel to a ApplianceDTO. Each Appliance has a collection of ActionViewModels which are mapped to ActionDTO. What I'd like to do is configure the mapper to ignore ActionViewModels whose IsPersisted value is False. My ViewModel classes ... public interface IApplianceViewModel : INotifyPropertyChanged { Obs...

Mvvm Silverlight, using binding to Programmatically style rows in a SilverLight DataGrid

Is it possible to bind a rows in a Silverlight DataGrid to some sort of style property in a ViewModel so that styles can be applied programatically / dynamically? I've been using the Mvvm-Light toolkit quite successfully to create an mvvm silverlight app, this is the first major stumbling block I have hit. Thanks in advance for any he...

(Silverlight newbie) Trying to add custom object as a Child of a WrapPanel (on code behind)

I have a WrapPanel where I add a bunch of rectangle controls I got everything working, but now I have decided that it would be better to create a class for them and instead of creating rectangles all over the place I'll just instantiate new objects. I did it but the problem is that now I get an error when I try to add my object as a Ch...

Silverlight scrollviewer for entire page not working

I have two pages with scrollviewers on them. One works fine, the other doesn't work at all and I don't know why. I'm hoping someone can help me understand what the second doesn't work. The first is this: <UserControl x:Class="DVCMaker.ViewPendingDVC" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http...

How can I record audio in a web app client side and save it in a web server?

I have a requirement to do a flash program or something like that (not necessarily flash, it can be javascript or something in aspnet) that allow me to save audio in the client side of a web app, and save it on a file in the server side of the web app. I've been searching a lot in google, and all I've found are just old questions, but n...

Expression blend 4 Silverlight version Incompatibility

I am getting the below error when I try create new sketch flow application "Blend cannot continue because of compatible silverlight version could not be found" I have the following installed Microsoft Silverlight version 4.0.50524.0 Microsoft Silverlight 4 SDK Microsoft Silverlight 4 Toolkit April 2010 Microsoft Silverlight 4 Tools ...

Silverlight GDR 1 Ruined my Developer Tools. Now I can't debug in VS2010

I have Silverlight 4.0.50524, but I have Silverlight SDK 4.0.50401. This makes me not able to debug Silverlight apps in VS2010. Can anyone point me to a download link for the Silverlight 4 GDR 1 SDK. ...

How can I put a Silverlight Application into a ASP MVC view page?

I'm working with both silverlight and asp mvc. The silverlight application performs a page request, and it works fine (into the test page generated by the VS), but I can't find a way to put it into my view. MiniSIG <div id="silverlightControlHost"> <object data="data:application/x-silverlight-2," type="application/x-silverl...

HttpContext.Current in WCF service during 2nd request

There is a Silverlight (4.0) application that is calling to WCF-service. During 1st call to WCF-service some data are get from HttpContext.Current.Session object. During 2nd call to WCF-service HttpContext.Current is null... Do you have any idea why (and how to fix that)? Current settings: Options "aspNetCompatibilityEnabled" and "ru...

Filling a Rectangle at different levels with Silverlight Animation?

Hi I am very new to Silverlight. I have a question on Animation. My requirement is, a rectangle should have different levels of fill indication. More clearly say, my rectangle is half filled initially, it has to be either increased/decreased with animation. Can anyone help me out how can I do this in Silverlight animation? Thanks & R...