silverlight

In Silverlight, how to launch / navigate to another page?

In Silverlight how can I launch / navigate to another page? ...

How does Silverlight determine an assembly is "Silverlight"?

I'm trying to compile code from F# to use in Silverlight. I compile with: --noframework --cliroot "C:\program Files\Microsoft Silverlight\2.0.31005.0" --standalone This generates a standalone assembly that references the SL framework. But when I try to add a reference to the generated assembly, I get this error: You can only add p...

Silverlight 2 and large canvases?

Hi all, I am working on an application that uses several large canvas controls (several thousand pixels across), layered on top of each other. The canvas controls themselves are completely invisible, but each contains a number of controls, mainly images. My question is, is there a recommended maximum size for a canvas, or is it purely...

Is there a notification mechanism for when a dependency property has changed?

In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged. Is there any other way of determining if the value has changed? ...

How is Silverlight going to change the internet in the next few years?

How is Silverlight going to change the internet in the next 10 years? Is this going to be a scene changer or just another blip? ...

Setting background image in silverlight

I currently have a silverlight application which rotates through several graphs of live data. Each page has two user controls though: one for an info box at the top and another for the graph to display. I have tried to add a background image to the master page that they are displayed on so that the image is behind everything but as soon ...

Does silverlight code need protection?

I don't quite understand how Silverlight code works within the browser. Are the assemblies downloaded to the client machine? Is there any chance of the code getting decompiled using Reflector or some similar tool? If so, what options does one have to protect the code? Do .net obfuscators work with Silverlight? ...

Silverlight book recommendations

So my boss calls me from the PDC last night and says, "Dude, go order and read some books on Silverlight because every demo here is using it." And now my task is to find a couple of books on it and learn it. Having plenty of .Net development but zero Silverlight experience, I'm looking for something that'll start with the basics and ge...

How to (de)serialise JSON data in Silverlight using a different name to member variable

I have the following members defined in a class that I'm trying to deserialise: [DataMemberAttribute(Name = "cust_title")] public String Title { get; set; } [DataMemberAttribute(Name = "cust_description")] public String Description { get; set; } For some reason, the deserialisation fails (it seems to ignore the DataMemb...

How do you graph with Silverlight inside a ASP.NET v3.5 application?

I have the need to do some graphing (bar, chart, pie, trend) and instead of using Infragistics or manually drawing the graphs I want to use Silverlight. My current ASP.NET application was upgraded to 3.5 and I have added a Silverlight Application project. Consuming the output inside of the existing master.page layout or inside of user ...

Does the concept of shared sessions exist in ASP.NET?

I am working on a web application (ASP.NET) game that would consist of a single page, and on that page, there would be a game board akin to Monopoly. I am trying to determine what the best architectural approach would be. The main requirements I have identified thus far are: Up to six users share a single game state object. The users...

Why doesn't my Path show up when I programmatically add segments to the path in Silverlight 2?

I'm creating a Path in Silverlight, and adding elements to it on mouse events. But, although the elements are there in memory, the screen doesn't get updated until something else causes a screen repaint to happen. Here's the relevant code - I'm responding to a mouse event, and I keep a class member of the path I'm editing. Path path =...

Silverlight 2 Sidebar Gadget

How do you display a Silverlight 2.0 application in a Vista Sidebar gadget? Whenever I load a gadget with the standard Silverlight 2 object tag, I get the no-silverlight default content instead of the app. So, what's the trick to allowing it to run? This is how I am currently trying to pull it off: <html> <head> <meta http-equi...

Silverlight, Wpf Web App (xbap) or Click Once? Pros and Cons

We are starting a new project and I'm trying to decide which of the Wpf-esque develop/deploy strategies we should go with. In our case we are looking at quite a complex business app that will be used by 100s (not 1000s) of people, So I'm leaning towards a click-once app. My boss likes the idea of a Silverlight app as it means easier depl...

Use Silverlight Isolated Storage To Keep Authentication Token?

Hi, I would like to hear some opinions about using the isolated storage in Silverlight for storing sensitive data. For example, is it OK to store an authentication token (some GUID that identifies a server-side session) in this storage, or is it better to use cookies? The isolated storage gives an advantage over cookies in that it is s...

How do I use HttpWebRequest with GET method

I have the following code which works just fine when the method is "POST", but changing to "GET" doesn't work: HttpWebRequest request = null; request = HttpWebRequest.Create(uri) as HttpWebRequest; request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; request.Method = "POST"; // Doesn't work with "GET" request.Begin...

Workaround for UpdateSourceTrigger LostFocus on Silverlight Datagrid?

I have a Silverlight 2 application that validates data OnTabSelectionChanged. Immediately I began wishing that UpdateSourceTrigger allowed more than just LostFocus because if you click the tab without tabbing off of a control the LINQ object is not updated before validation. I worked around the issue for TextBoxes by setting focus to a...

Silverlight Rest Service, Security Exception

I am trying to get Silverlight to work with a quick sample application and am calling a rest service on a another computer. The server that has the rest service has a clientaccesspolicy.xml which looks like: <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <dom...

How do you access an attached property of a Silverlight object in C#?

Basically I'm trying to change the Canvas.Left property of an Ellipse Silverlight control in C#. Here is how I'm accessing the control: Ellipse c1 = this.FindName("Circle1") as Ellipse; How would I then set the Canvas.Left property? Thanks, Jeff ...

How to add Silverlight controls in Visual Studio 2005

I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this as custom toolbox in my Visual studio please let me know how to add this and use the controls ...