silverlight

Gzip compression for HTTP requests

Is there any way to make browsers &/or Silverlight application do a GZIP compression of HTTP requests? Don't confuse with GZIP compression of HTTP responses - I know how to set this up on the server side. What I need is to compress requests as well, and protocol allows that - anybody using it? Configuration tips? ...

Automatic Silverlight assembly generation from a .NET 4.0 CLR assembly

Is there a tool that converts .NET 4.0 assemblies to Silverlight assemblies (with assembly mapping configuration)? ...

How to make ItemsControl choose different templates depending on run-time type.

I have a xaml page that has an ItemsControl control on it. ItemsControl is bound to Guests which is ObservableCollection. Guests collection can have objects of two different types: USGuest and UKGuest, both inheriting from Guest. Is it possible to make two (or more) templates for ItemsControl and make it automatically choose between them...

how to make use of a property Matrix3DProjection of an silver light popup

how to work out with property *Matrix3DProjection" of an silver light popup ? ...

Dynamically Styling TreeViewItem? (Silverlight)

Hey all, I've noticed that if I have a style setup for a treeview, and a different one setup for the treeviewitem, it gets overridden once I put the item in the tree. Does anyone have suggestions for how to control the style of each treeviewitem individually while mantaining a default style that is applied to the whole treeview? Basicall...

Code error 2104 after moving aspx page to some folder.

Hi guys, I get the following error after moving aspx page to some folder. Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings Environment: Win7 x64, VS2010, SL 4.0.50524.0, IE8, IIS7.5 Steps to reprod...

ObservableCollection

Ive posted another thread regarding refreshing a silverlight listbox - In the meantime Ive become slightly more familiar with the issue. It has to do with implementing the ObservableCollection interface. Im using RIA services to populate a listbox with a collection of type ObservableCollection. The problem is refreshing the Items once ...

Can I share the TreeView control with Silverlight and WPF?

I would like to use the WPF and Silverlight toolkit's TreeView control, but have it be in the same xaml file that I share between 2 projects as a link. In silverlight, the class is in the System.Windows.Controls.dll and in WPF it is in PresentationFramework.dll. So for my xaml namespace, they need to be declared differently which cause...

iis server returns 500 internal server error, while polling. but works on localhost.

I am using the polling duplex model for my silverlight app and wcf communication. The wcf service pushed data to the silverlight app. While the app runs perfectly in my local environment and local iis (xp, iis5.0), it has a very unpredictable and abrupt behavior when i deploy it on my test server on IIs 7. The default for the 'ServerPo...

Finding Controls of the Same Type

Does anybody have a good way of finding ALL the controls within an object that is of the same type? Here's my scenario, I have a tab control and within each tab control exists a user control (ALL of which match the same base type e.g. MyBaseClassControl). I want to be able to find that user control WITHOUT having to use the control.Fin...

Add f# function as event handler in xaml

Does anyone know how to add an F# event handler to a control in the xaml file? ...

Can I replicate the IsStroked property for a PathSegment in Silverlight 4?

In WPF it is possible to use the IsStroked property of a PathSegment to make the Segment invisible, I'm looking for a way to replicate this behavior in Silverlight, which doesn't have this property. Is this possible? [EDIT] I'm looking for a way to do this in code-behind, not in Xaml. ...

Why use a "RIA Services Link" instead of just an OData endpoint?

Before reading, please know I've read all the other posts about the differences between vanilla WCF, WCF Data Services and RIA Services. My question is specifically about why RIA Services is being considered as a special kind of data source specifically for Silverlight when it seems to make more sense to just have it do one job: serve as...

How Change Something in View from Presentation in Prism?

Hi I want to change something in view(user-control) class from itself Presentation class. For example i want to change button content from Presentation. @Extra Info: change something refer to make a change in Controls-visual or something like that. so How I do That? ...

Looking for parsing patterns for a Silverlight bbcode-to-TextBlock/Run parser

I would like to create a simple parser class for Silverlight which parses this text: [size=15]This is the header[/size] This is [i]italicized text[/i] and this is [b]bolded text[/b] and this is a hyperlink: [url]http://example.org[/url] and so is this: [url=http://example.com]Example[/url]. into this kind of code: T...

Can we use CSS in a Silverlight project

heelo all i have a problem i eant to make a web application using silver light i just want to know that can i use a css in this.because i read the the designing of silver light is in the xaml or we use css with html tag. is any body clear my confusion thanks ...

video information in silverlight

how can i read information (the summary) from a video file i am playing in mediaelement like name, poster, album ... like media player do or even read a file properties ... ...

How to use Silverlight SDK with WPF

as easy as it sounds, How can I use the themes provided in SL SDk 4.0 into WPF project?? It should be easy!! Am I missing something? ...

How do you implement a 'FileUploadCommand' using OpenFileDialog in Silverlight?

Ok, Wanting to MVVM an existing app. The code behind contains the following: private void UploadClick(object sender, RoutedEventArgs e) { /* * 1. Clear Messages (ObservableCollection) * * 2. Create new OpenFileDialog * 3. if(ofd returns ok) * Pass file to Interpreter */ } Basically, what I'd lik...

Custom panel with alternate background

I'd like to create a simple custom panel to layout children in a business form fashion. Ideally I'd like my markup to look like this: <Panels:FormPanel> <TextBlock Text="Name:"/> <TextBox /> <TextBlock Text="Address"/> <TextBlock Text="Unknown"/> <TextBlock Text="City"/> <TextBox Horizont...