silverlight

Specified method is not supported httpwebrequest - Silverlight

I am trying to use an HttpWebRequest object in Silverlight 2.0, to do a "POST". Upon return from the BeginGetStream method I end up with the following error : Message: "Specified method is not supported." StackTrace: " at System.Net.BHWRAsyncResult.get_AsyncWaitHandle()" Here's some sample code: Note I have used fiddler t...

UIElement.ClipToBounds is in WPF but not Silverlight. How to simulate in Silverlight?

I have a Canvas in WPF and I want to prevent its children from being drawn outside the edges of the Canvas ara. In WPF this is simple as you just set the ClipToBounds property on the Canvas to True and it does as expected. Porting the sample XAML to Silverlight there is an issue because ClipToBounds does not exist! Is there a way to si...

How do you convert a C# Class Library project to a Silverlight Project?

I accidentally created a C# class library instead of a Silverlight Class Library for quite a few dlls. Is it possible to modify the project file easily to convert it instead of creating a new one? ...

Starting out with Silverlight

Exactly what do I need to get started from scratch in order to develop with Silverlight? ...

Silverlight Databinding one control to another

I'm working in Silverlight. I've got a ListBox that's being loaded dynamically. In the listbox, i want to put a checkbox that's tied to the listbox's "selected" property. I can't quite figure out how this is done. Can anyone point me in the right direction? If this were a winform thing, I would, create "OnChecked" handler for the chec...

SIlverlight VSM State change to target items in ItemsControl

I have an ItemsControl with Items being added through databinding to an observable collection. Each item has a data template that defines its look. I am trying to figure out if it is possible to apply/trigger animations to/on each of the Items in the ItemsControl when the VisualStateManager puts the ItemsControl in a particular state. ...

TemplateBinding in ItemsPanelTemplate

Hi all, I'm building a custom ItemsControl in Silverlight that (amongst other things) allows items to be displayed horizontally or vertically at runtime. How can I bind the Orientation property of the ItemsPanel to the Orientation property of my parent control? I've tried using TemplateBinding (which works inside the ControlTemplate) ...

Embedding Silverlight app in an Eclipse RCP

Does anyone has a good resource on embedding a Silverlight application in an Eclipse RCP application? Scenario is as follows: We have a third party application that we want to integrate into an already developed Eclipse RCP Application, and we don't want to redo anything. Also, I can't just start this as a second app but must be embed...

Line Art Effect by Pixel Shader in WPF?

I want to create a Line Art effect but as I got vertex shader is not supported by WPF now. Is there a way to create Line Art effect by Pixel Shader? Any idea? Thanks. ...

Why the lack of innovation and Silverlight on Windows CE?

A manager asked me to do some quick research on the possibility of doing Silverlight development on Windows CE devices. After 15 minutes I was surprised that: Silverlight for Windows CE seems to be nowhere in sight, with some sites wanting to report it so bad they they are quoting twitter tweets as their source of news, the word "mobi...

Throw new Exception and Application_UnhandledException

My Scenario: I'm using a Silverlight MVVM pattern. All my view models inherit from a BaseViewModel class that maintains some basic values and behaviours. One of these behaviours determines if the user is authorised to use particular functionality and returns a boolean. If the function is not located, I want to throw a new exception an...

How to read an XML file on localhost from Silverlight application?

I have Vista with IIS7. I want to create a simple Silverlight application that reads an xml file from localhost. I created this file (which I had to copy and click "allow" as administrator): C:\inetpub\wwwroot\data\customers.xml and can see it when I go here in a browser: http://localhost/data/customers.xml But when I run...

WCF exception - "Service not found" when retrieving large collection

Hi, my WCF service it's used by a Silverlight application to retrieve data. I've no problem, [OperationContract] MyCollectionClass GetList(int sessID, string name); [CollectionDataContract] public class MyCollectionClass : List<MyClass>{ } [DataContract] public class MyClass { [DataMember] public string Prop1 { get; set...

Ensure text remains always readable in Silverlight

We have a Silverlight application that shows text over video. Both the text and video can be considered variables. Sometimes we might have a dark video, sometimes a bright video, sometimes a video that has sections of both. Think of credits at the end of a movie. We want to ensure the end user can always read the text being show over th...

Why does the animation I copied in from Expression Blend to Silverlight VS project only run once?

In my Silverlight application, I want different texts to repeatedly fly in from the right changing colors and getting smaller. The animation works the first time through the loop but not subsequent times. Here's what I did: (1) I went into Expression blend, used the "Create Storyboard" tool to create the animation. then (2) copied th...

What would be a good way to add a help system to Silverlight applications?

What would be a good way to integrate a help system into Silverlight applications? The original manual is written in MS Word, so I will need some means to transfer it to whatever format you suggest. Also if your answer is HTML can you explain in details the integration process (HTML popup windows are effectively blocked by most of the br...

zooming effects for an image using silverlight

Hello i am new to silverlight. i need to create zoom in & zoom out options for an image at run time using silverlight. please give some idea. it is better if you explain with some code samples. ...

zoom in & zoom out options for an image at run time

Hello i am new to silverlight. i need to create zoom in & zoom out options for an image at run time using silverlight. please give some idea. it is better if you explain with some code samples. please . thanks. Duplicate of: http://stackoverflow.com/questions/700516/ ...

How can I connect the ModelView to the Model in this Silverlight MVVM example?

I'm using the article Model View View-Model (MVVM) in Silverlight as a basis to create my own MVVM example in Silverlight. I've got all the pieces below: main page (loads everything) View (XAML file with bindings) Model (a Customer class generating a fake List collection) ModelView (inherits INotifyPropertyChanged and has the Property...

Animation in DataGrid of Silverlight Application - How?

I'm starting to kick Silverlight around (although it currently feels the other way around) by rewritting an existing ASP.NET application - as good a place to start as any I thought. I have 'mastered' pulling data from a database, through a service and into a datagrid and also populating image elements in the rows. So far so good. Now i...