silverlight-3.0

What are the differences between Silverlight 2 and Silverlight 3

Can you give me a breakdown of the differences between Silverlight 2 and Silverlight 3? ...

Pass dynamic parameter

I want to pass dynamic parameter (UserName) from web application into silverlight . I know how I can do that in Silverlight 2.0 with Asp:Silverlight tag, however as in Silverlight 3.0 there is Object tag instead of Asp:Silverlight tag, I was wondering how can I pass dynamic parameter into Silverlight 3.0? I know we can use init param , h...

VS2008. Make class defined in Project 1 visible in Project 2 inside the containing solution

How can I make a class defined in Project 1 visible so I can declare objects of that type inside Project 2, if both projects are part of the same solution? Thank you. ...

Reading and Editing text in Silverlight

I want to open a text file, make changes to it and then update same file via Silverlight. How can i do it? ...

Silverlight IsolatedStorage techniques for larger files?

I am using IsolatedStorage in Silverlight 3 to store some settings when a user navigates away from a page hosting the application. Currently i'm using a DataContractSerializer to write the settings to file. In some circumstances the resulting file is quite large, over 10MB (a lot of this size is due to the serializer itself and the XML ...

How to save a byte array to a file from silverlight

Hello Everybody, I have a SL 3 application connected to a WCF service. This service retrieves an array of bytes. I'd like to save that array as a pdf file using FileStream. The problem is that when the byte array is retrived, I get an exception when trying to show the SaveFileDialog because that action is initiated by the callback metho...

DomainContext, Silverlight 3, code behind, Edit EntitySet

I'm trying to get my brain wraped around Silverlight RIA I'm to a point where I can create an object with a collection of objects which also has a collection of objects. Test object that holds test questions, that holds question answers. I have the associations set up and the the data makes it to to silverlight app. So in my loaded c...

Custom Right Aligned StackPanel control layout in Silverlight

Hi all, I'm trying to create a custom layout container, with the same characteristics of StackPanel, with the exception that it lays out the items starting at the right edge of the screen. Needless to say it does not work correctly. I have identified a flaw inside ArrangeOverride() where the line Point elementOrigin = new Point(thi...

Silverlight async api's cause hangs and none-responsiveness

this code causes silverlight to hang. If I remove the ManualResetEvent code, nothing happens private ManualResetEvent mre = new ManualResetEvent(false); ... WebClient sender = new WebClient(); sender. += new OpenReadCompletedEventHandler(this.ReadComplete); sender.OpenReadAsync(new ...

Is it possible to change the animation speeds in Silverlight themes?

Is it possible to change the animation speeds that are used in the Silverlight toolkit themes? Specifically, I like the look of the Expression Dark theme, however I feel that some of the animations it uses take too long and make it feel sluggish. I'd like to be able to modify the animation speeds thru a setting, and be able to do so ...

How do I Immediately Validate a Newly Inserted Row in a Silverlight 3 Datagrid?

I have a Silverlight 3 tools library with a custom DataGrid user control. This grid has no direct access to the WCF RIA Services entity types so I'm using reflection to add a new item when the user clicks on the grid when it's empty: private void InsertEmptyRecord() { if (this._dataGrid.ItemsSource == null) return; Type...

How can I use VisualStateManager to change the text color (foreground) of a ListBoxItem?

Here's the deal. I can create a ListBox and style it. I can edit a copy of the template such that the States become available in Expression Blend 3. And I can change the state so that the background color of a line item is modified when selected. But I cannot change the foreground color of the text because of the ContentPresenter! Does a...

FindElementsInHostCoordinates Relative To Control Space Not Entire Page

I'm using the VisualTreeHelper method FindElementsInHostCoordinates to find a ListBoxItem at the given X and Y location. However, X and Y value appear to be related to points in the entire page not just the ListBox I'm interested in (even though I'm passing in that element into the subtree parameter of the method). Below, this refers t...

How to Bind the Cursor property of a Grid to a Property of my ViewModel in Silverlight 3.0?

I'm attempting to bind an IsLoading property to the Cursor property of my UI's LayoutRoot Grid. I'm trying to have the main app cursor become an hourglass whenever the property says it's loading. I'm binding the property as follows: <Grid Cursor="{Binding IsLoading, Converter={StaticResource CursorConverter}}"> The key "CursorConvert...

Tools for automating SilverLight application

I want to automate the application develoepd in silverlight. Can you let me know whether there are any open source tools are available which can be used for automating SilverLight app. Thanks. ...

Silverlight - Saving an already downloaded image to disk.

Hi, I have a silverlight application that displays images. These images display fine but I would like to go one step further and let people save an image to disk. I don't want to redownload the image using the WebClient class. I can see the image so I know it's already cached somewhere on my computer. Technically, I don't think it sho...

Web Service missing methods when called from Silverlight

I created WCF web service, deployed it, and debugged it. I wrote a console app, referenced the web service, and everything works. Now, I'm attempting to consume the web service in a silverlight 3 application. I added the following code to a click event. TagServiceClient client = new TagServiceClient(); Tag[] tags = client.GetTags(); cl...

RelativeSource binding to a parent property of a ComboBox SelectedItem return object

Hey all, Given the data structure { Collection elements; String LocationName; } And a ComboBox that is bound to a collection of such items (described in the structure) with DisplayMemberPath set to LocationName, how do I bind a datagrid to the SelectedItem.Elements of said combo box in XAML? By my understanding the SelectedI...

RIA services WCF timeout

Hi All, I have an application which is written in silverlight 3.0. It uses RIA services to communicate between the client and server. My question doesn't seem to be answered very well on the web. The client communicates to the server using RIA services, which uses WCF behind the scenes. If the communication takes more than 60 seconds i...

Proper usage of Merged Resource Dictionaries in Silverlight 3

As I read: http://msdn.microsoft.com/en-us/library/cc903952(VS.95).aspx, specifically the section labeled "Forward References With a ResourceDictionary": Static resource references from within any given resource dictionary must reference a resource that has already been defined lexically before the resource reference. Forward...