silverlight-4.0

How to display items in GridViewComboBoxColumn?

Hi How to display items in GridViewComboBoxColumn ,when we call WCF from Silverlight? I try it like below: cbValue.ItemsSource = e.Result; (Note: cbValue is name of GridViewComboBoxColumn) But it doesnt display the result. ...

Change culture of Silverlight application

Hi, I am working on a Silverlight app at the moment. I have a few datagrids/textblocks where I use standard binding to show values, some of which are dates. e.g. <sdk:DataGrid AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding Path=MyCollection}"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn Binding="{Binding ...

WCF RIA DomainContext has not changed after changing entry in property Dictionary<string, string>

I have a WCF RIA service containing an Entity with a property of Dictionary If I change an entry in the dictionary e.g. MyDic["Name"] = "Some text" I dont get a property changed and _domainContext.HasChanges is false. How can I make the DomainContext aware that I have changed an entry in a Dictionary. ...

Styling dynamically added StackPanel child elements

Hi, I have a StackPanel that I dynamically change the contents of every 5 minutes to show the user messages. These messages are displayed as TextBlock or HyperLinkButton. I'm wondering how/if I can set a style within the StackPanels style that will apply to the children. E.g. I've tried <Style x:Key="InfoBarStyle" TargetType="StackP...

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...

Is WSDualHttpBinding in the Silverlight 4 Assembly?

I'm trying to connect to an existing Windows Service that exposes several WCF endpoints. The one I'm concerned with is the one the Silverlight 4 application will talk to. Here is the Service's config file (at least the sections we're concerned with): <system.serviceModel> <behaviors> <serviceBehaviors> <behavior na...

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. ...

Silverlight 4 - Configuring a SqlRoleProvider with a WCF RIA Services Class Library

Basically I separated the whole login registration and authentication of the Silverlight Business Application template into a WCF RIA Services class library. But I am not getting this remote server returned NotFound error. I am supposed to use the SqlRoleProvider and SqlMembershipProvider to hook up the authentication context to my data...

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...

How to add RadCombobox dynamically?

Hello, I want to add RadCombobx dynamically. When I select value from First Combobox then Combobox should be add to RadGridView. How to add it programatically? ...

submit combo box value in data form to database

I have a combo box inside a dataform which has two option M and F for gender. It is hard coded . Now I want to bind it to dataform so that I can submit it to database. What should I do? Below is the code: [code] ...

Fixed grid header inside usercontrol in silverlight 4.0

Hi, I'm face to a problem really hard to solve and I found nothing in internet. I have a control used in parts of the application that is a customized grid. My problem is that in a part of the application. They put a scrollViwer to make it scrollable and they asked me to fix the header row to make it always visible. I found solution ...

SL 4 Version Hell ?? The silverlight developer runtime is not installed please install a matching version

I've been developing for and running Silverlight 4 for about a week. A week ago I installed the Silverlight 4 design time components to develop and debug silverlight for VS 2010 - I posted some of these apps and they were used by users running SL4. Today, I went to a website that told me to upgrade my SL (I think it was the MS expressi...

Unit testing private functions in Silverlight

Does anyone know how to test private functions in a Silverlight Unit Test project? The *_Accessor objects don’t seem to be available that are their in a normal unit testing project. ...

Difference between ItemsSource and DataContext as pertains to ListBox

I am not quite grokking the difference between ItemsSource and DataContext. Can someone explain it and back it up with examples? When would I use one or the other. I am reading the docs and it says that I can bind using DataContext, but I throw an ObservableCollection at it and nothing shows up in the list. If I throw the same collec...

Images in a Horizontal StackPanel are being displayed Vertically

I am building a layout in Silverlight 4, and am trying to display some thumbnail images horizontally with a horizontal scrollbar. To do this I tried using a StackPanel with Horizontal Orientation, but the resulting images are always displayed Vertically. <ScrollViewer Height="140" VerticalAlignment="Top" VerticalScrollBarVisibility="Hid...

Silverlight 4 Unit Testing

Hi guys, I've installed Silverlight 4 Toolkit April 2010 and have VS 2010 RTM but Silverlight 4 Unit Test Project template is not installed. Is it by default for this release? If so, how can I use SL4 unit testing? Thanks. ...

Silverlight 4, RIA Services Multi-step Server Side Validation

Newbie question, I have a simple Silverlight 4 client. I'm creating some methods on the server side to handle new user creation / validation. Before I create the user, I'd like to validate a number of things. Does the user name already exist? Is the email address valid? Does the password pass strictness checking? Etc, etc. I'm not ...

Silverlight 4 DataTemplate DataType

Silverlight 4 is out and it seems we've missed the DataTemplate DataType functionality in this release again, which is pretty pivotal for MVVM support IMHO. For my WPF apps, at this point, I'm pretty used to globally adding DataTemplates for my Views to my Application.Resources with DataTypes for my corresponding ViewModels: ie. <DataT...

Unity 2 and Silverlight 4

I am using Unity 2.0 with Silverlight 4 and RIA Services. Is xml configuration not supported in the web project of a Silverlight Business Application? The only way I can get the resolve method of the container to work is if I register my types at runtime vs design time in the xml config file. ...