silverlight-3.0

WCF Ria services and Visual Studio 2010 RC?

Hi, does anyone know what the planning is for WCF Ria services now that the RC of VS 2010 is out? Specifically, when is a new build coming and will it be usable with Silverlight 3 now? ...

How can I encrypt a user's password in Silverlight?

I have a Silverlight 3 app which connects to a server to perform various actions. My users log in using Forms Authentication but the actions they request are run on the server using the AppPool account so when they go in the audit logs they're recorded against the AppPool account. PCI DSS regulations now require that the user's own ID ...

AutoMapper - Mapping objects in a class library to objects in a silverlight class library

Hey all, I am trying to use automapper to map a list of objects in a class library to a list of objects in a silverlight class library. I am getting a security exception as AutoMapper is trying to reflect over the silverlight class library. Does anyone know of a way around this? Thanks. ...

How do you draw a string to a Bitmap in Silverlight?

In normal C# it is easy to draw to a bitmap using the Grpahics.DrawString() method. Silverlight seems to have done away with Bitmap objects and Graphics is no longer available either. So...How am I meant to manipulate/create a bitmap when using Silverlight? If it helps, I am using Silverlight 3. Let me tell you what I am doing. I am ...

Slow Operations In A RIA Services Domain Service Class

sHi All, I am using silverlight 3 with RIA services. I was wondering how I should deal with slow operations in a domain services class? I have an operation that will take a couple of minutes. I get a WCF timeout after a minute while the client is waiting for a response from the server. Another approach perhaps? Is is possible to tell t...

Silverlight Issue with Firefox 3.6?

Recently I updated my firefox to 3.6 and the silver light app on my web app has weird behavior. No button click happens in the silverlight app, it just gives it the focus and if we 'TAB' around, we can get the click working. But this is not like the previous behavior in FF 3.5.7. Very inconvenient for the unsuspecting users. This woul...

Set DataContext of a textbox to the current class in silverlight

Hi, i have a textbox in a UserControl, i created a property in the UserControl, i want to bind the textbox text property to the property created in the usercontrol. The problem is that i dont know how to especify the datacontext to the current class in XAML. Any idea?? thanks ...

Create Properties or DependencyProperties that have Code Completion in XAML

Hi, I am trying to create DependencyProperties that have a nice drop down code completion when using them in the XAML-editor in Visual Studio. Many default SilverLight framework properties have such completion, e.g., Background or BorderBrush. Also, Boolean Properties show the True/False selection in the XAML-editor. The same holds true...

Issues / Steps in downgrading silverlight 4 app to silverlight 3

What steps does it take to download a Silverlight 4 application to Silverlight 3. I can't develop any longer with Beta 4 and made a wrong assumption that VS2010 RC would be able to run Sivlerlight Beta 4 - which it unfortunately can't. VS2010 RC which was just released can only currently work with SL3. (hoping/expecting someone to hack ...

How to refresh ListBox.ItemsSource in a SilverLight 3 project?

I my XAML, I have a ListBox defined <ListBox x:Name="lstStatus" Height="500" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Top" Margin="2, 2, 2, 2"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Image /> <TextBlock Widt...

Silverlight Storing Reference Data

I have a text file with a list of 300,000 words and the frequency with wich they occur. Each line is in the format Word:FequencyOfOccurence. I want this information to be accessible from within the C# code. I can't hard code the list since it is too long, and I'm not sure how to go about accessing it from a file on the server. Ideall...

Convert an ASP.NET application to a Silverlight application.

Hello. I'm developing an three layer ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms. I'm wondering to convert that application to a Silverlight application. Maybe I can reuse a lot of code of ASP.NET layer. What do you think about? ...

Silverlight Treeview item Coordinates

Hi, I am new to silverlight and stuck with a problem. I am trying to find out the coordinates of a treeviewitem. Can someone help me out? ...

Background threads in Silverlight

How can i kick off a background thread immediately in Silverlight? I am executing some code on the UI thread, then I create the background thread and start it. But it seems that no matter what method i try, the background thread will only start actually executing when the UI is doing nothing (much like what happens with async WCF calls,...

Can I use a WCF RESTful service from Silverlight?

I have a WCF RESTful service using the WebHttpBinding and I want to know if I can use this in Silverlight 3 without any modifications? ...

Does Silverlight support WebHttpBinding?

Does Silverlight 3.0 support WebHttpBinding for WCF RESTful services? ...

Silverlight DataForm: When is the Dirty flag coming up?

I'm using Silverlight 3 with RIA Services without DomainDataSource. When binding to a PagedCollectionView (or ObservableCollection) in a MVVM the Dirty State on the Dataform doesn't come up (the asteriks). When I change an assocation chosen via a childview the Dirty flag comes up after changing an assocation twice. (I change the assocat...

DatePicker control Silverlight 3 Behaviour

I have datepicker control in my form, when user enter some invalid text, or some other character using keyboard, then the text property doesn't show the user entered text which is invalid, But the arguments in the DateValidationError function does containt the invalid user input in the e.Text property, how do I get that invalid user inpu...

How to diagnose client-side WCF issues in Silverlight environment?

It seems that WCF diagnostics is not available in SL. Is it because of limited System.Diagnostics support or something else? Anyway, how do you track client-side WCF issues when server-side diagnostics is not enough? ...

Create Dependency Properties for setting Custom EventHandlers in XAML

Hi, i want to do add custom event handlers to default framework elements using DependencyProperties. Something like the following: <Border custom:MyProps.HandleMyEvent="someHandler">...</Border> Here is the code behind for the control that contains the Border element: public class MyPage : Page{ public void someHandler(object se...