silverlight

MSIL: "Operation could destabilize the runtime" exception

Hi! I've been playing with PostSharp a bit and I ran into a nasty problem. Following IL in Silverlight assembly: .method public hidebysig specialname newslot virtual final instance void set_AccountProfileModifiedAt(valuetype [mscorlib]System.DateTime 'value') cil managed { .maxstack 2 .locals ( [0] bool ~propertyHasCh...

Authentication options in a scenario, where a silverlight application is calling a self-hosted wcf service.

Our system consists of a self-hosted (non-IIS) WCF service and an Asp.net website which hosts a Silverlight application. The application is supposed to do pretty much everything, the website is just a "shell" in this case. We have a hard time figuring out how to solve user authentication securely. To my knowledge, Silverlight can not h...

Decoupling Silverlight client from service reference generated class

I am researching Prism v2 by going thru the quickstarts. And I have created a WCF service with the following signature: namespace HelloWorld.Silverlight.Web { [ServiceContract(Namespace = "http://helloworld.org/messaging")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequiremen...

Can I include flash content inside a silverlight app?

I have a silverlight application, which requires charts with printing. As silverlight does not support printing, I was thinking of including some flash charts inside my application. I know it sounds weird.... But is it possible? ...

Silverlight stretch child element to fill parent container?

In Silverlight, how can I stretch the width of a Line to fill the width of the StackPanel in which it is a child element? Prefer a XAML solution, not a code-behind. Here is how I can do it in WPF: <Line X1="0" X2="{Binding Path=ActualWidth, ElementName=HolePatternStackPanel}" Stroke="Gray" StrokeThickness="1" /> But that does not work...

Why does this silverlight animation make the entire layout disappear?

I'm starting to have a look at Silverlight, and I wanted to start small. All of the examples I'd looked at used keyframe animations, so I wanted to try a different type of animation. I was also somewhat unfamiliar with performing animations from code, so I decided to try this out as well. My ultimate goal is to make some kind of anima...

Server-Side eventing between Silverlight and the host .aspx page

Is it possible to set up a listener in a Silverlight control to listen for events on the hosting aspx web page? I want to have several Silverlight and ASP.NET user controls hosted in a web page. I want to fire an event on one user control, sending an event to the host page (it needs to be notified), and then I want to broadcast an even...

Silverlight listener for Java-script events on host web page

How do I set up a listener in Silverlight to listen for a javascript event thrown from the host web page? ...

Custom behavior if silverlight does not exist

using the Silverlight control (asp:Silverlight) on an aspx page, is there a way to customize the behavior if silverlight does not exist? I want to display a table with images in them if silverlight does not exist on the client. ...

Silverlight Dependent or Filtering Combo Boxes

Hello, Thanks in advance for any help. I've got two combo boxes which I'd like to be dependent on each others input. For example, when I update one, it filters the available values for the next. Thought I had everything working until after I switched between the two a few times, both just because blank. I've got two combo boxes with ...

How do I Determine the Source of the SelectionChangedEvent

I have a question regarding a ComboBox in silverlight and it's selected item. I would like to determine what triggered the SelectionChangedEvent, was it the user selecting a new item in the list or was it programatically set? While ideally I would like to solve this using the CommandPattern (I am essentially using a modified RelayCom...

How can I set Headers with Silverlight GET HttpWebRequest?

Making a request to a RESTful service in Silverlight with HttpWebRequest works well so long as I don't add any headers to the request. As soon as I add a header using code like this var webReq = (HttpWebRequest)WebRequest.Create(new Uri(_RemoteAddress, "GetProviderMetadata")); webReq.Method = HttpMethodType.Get; webReq.Headers["SomeTok...

Auto Deserialize XML into a class collection within Silverlight?

Sorry if this is generic in nature, but I have a question that maybe is related to my lack of understanding of some core underlying rules of .NET and Silverlight. I have a basic project at the moment that simply: An ASP.NET generic handler writes out XML Within Silverlight, I am using the WebClient object to get the XML output, in fac...

Silverlight Toolkit, Where do you put the binaries.

So you download the toolkit off Codeplex. Now what? Where do you prefer to place the binaries? I'm particularly interested in what you do with the design binaries, where in your systems folders do you place these? Do you add them to the GAC? ...

Inheriting from a UserControl abstract subclass

Hi guys, I have a set of UserControls that need to have a few similar properties. Thus I have defined an abstract subclass of UserControl that defines these properties and updated the .xaml.cs and .g.cs files to inherit from this base class. All compiles well and runs well. Great! But.... .g.cs files are generated and will be regenerated...

Any real Silverlight projects?

Appart from projects funded/pushed by MS itself, are there any real-world examples of projects that opted for Silverlight? What were your experiences? Learning curve? Advantages? Resources? Pitfalls? Sacrifices? --EDIT-- I'm most interested in the developing (team)'s story. ...

Persisted properties - asynchronously

In classic ASP.NET I’d persist data extracted from a web service in base class property as follows: private string m_stringData; public string _stringData { get { if (m_stringData==null) { //fetch data from my web service m_stringData = ws.FetchData() ...

Cross-domain policy not taking effect

Hi, I've created a ClientAccessPolicy.xml that looks like this: <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domai...

How can I call a COM component using JavaScript in Mozilla?

I am calling a COM component in IE. Here is the code <object align="left" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="Winvideo-Silverlight2RTW-Hypervideo-Part1-WMVa.wmv"> <param name="FileName" value="Winvideo-Silverlight2RTW-Hypervideo-Part1-WMVa.wmv"> <param name="AutoRewind" value="true"> <param nam...

silverlight streaming hosting

Hello everyone, Microsoft provides service at silverlight.live.com to provide hosting service, I am wondering whether there are some products which enables us to host silverlight streaming locally, e.g. hosting in IIS or in some file server? thanks in advance, George ...