silverlight-4.0

Silverlight control goes black in FF during fullscreen (SL 4, Firefox 3.6, multiple monitors)

If I click to make my Silverlight object fullscreen in Firefox 3.6 it works successfully, but then if I select a different window (I'm running two monitors so can do this) then a new window appears in my Windows taskbar titled 'Microsoft Silverlight' which is where my fullscreen Silverlight application now lives. So it's moved out of Fir...

Is there a way to re-use Styles for Shapes in Silverlight 4?

I'm trying to create a resource Style for a Path (Shape), however, when creating several Paths that use the Style, only the first one is rendered. //In resources xaml <clr:String x:Key="path">M 50,50 L 35,15 A 8,10 0 0 1 65,15z</clr:String> <Style TargetType="Path" x:Key="pathStyle"> <Setter Property="Stroke" Value="Black"> </Style...

What is the DataContext of a DependencyObject in Silverlight4?

I have read that SL4 introduces the ability to data bind properties on objects that derive from DependencyObjects, where previously data-binding only worked on FrameworkElements or FrameworkContentElements. However, I am not clear on how the binding source is determined when binding properties of DependencyObjects. In the case of Frame...

Create a slanted-tab header in Silverlight

Hi, I wanted to create a slanted tab header using the tabitem control in the silverlight toolkit. I want it to look like the image below but i'm not sure how to accomplish this. http://img713.imageshack.us/img713/1462/silverlighttabs.png Any help and direction would be gladly appreciated Thanks, Keith ...

Windows Phone 7 API + SSL

Hi, I'm trying to connect to an API, which is hosted on an SSL connection. This is the crossdomain: <?xml version="1.0"?> <cross-domain-policy> <allow-access-from domain="*" secure="true" /> </cross-domain-policy> That's all there is. Now I try to connect, but I always get a security exception (no more info given). Now the pro...

Silverlight 4 Problem with Out of Browser sllauncher.exe - no paramaters in shortcut

My OOB app was working fine. I stupidly renamed all my namespaces and my project names/filenames. (Eventually) I got it all working again but my OOB shortcut stopped working. I removed and reinstalled it but it will not load and throws an error (see below). It creates the shortcut on my desktop, but if you look at the Target of the sho...

Looking for WPF/Silverlight 'device ring' example

I'm looking for an example of a 'device ring', somewhat like the one used in Live Mesh (anything in a ring will do) in XAML (WPF/Silverlight). Preferably with demo code or open-source so I can have a look at how things work under the cover. Other animations, like resizing of the elements if they move around the ring, are a nice extra, bu...

Silverlight linq-to-entities Anonymous type problem

Hi, I am trying to work with silverlight, wcf data services ( on the website code) and Linq-to-Entities. I know that anonymous types don't work on silverlight then I created a known class in order to retrieve some information. (I know the query it is not exactly intelligent, but It is only an example) but It is not working. can somebody...

WCF-service: how to authorize user

WCF-service is hosted by ASP.NET web-site. ASP.NET Membership is not used in web-site. User is logged using "custom" page, ID of logged user is stored into Session (HttpContext.Current.Session). WCF-service is consumed by Silverlight (4 version) application. How to check if current user (that loaded Silverlight application) is authoris...

Why isn't Expression Blend 4's designer working whenever we use build configurations?

I'm having an odd issue with Expression Blend 4. I've been using Blend 4 in conjunction with Visual Studio 2010 for quite a while without incident (beyond the ultra-frequent crashes). Now our graphics designer wants to start using Blend to do some touch-up work. We were able to get Blend to compile the solution on his computer. Unf...

How to create JavaScript class instance in Silverlight out-of-browser

Hello, Let's say we have a JavaScript class: function toy() { this.hello = function(msg) { alert('how are you? ' + msg); } } In Silverlight in-browser mode, we can use HtmlWindow.CreateInstance to create an instance of JavaScript class and get the ScriptObject, like below: var toyScriptObject = htmlWindow.CreateInsta...

how can config iis in windows 2003 server for silverlight 4 and .net 4.0

hi i made a prism silverligght app with SL 4.0 and .net 4.0 , i published app and put it on in iis and make that as web application on iis , when i browse .svc page or other page i give "The page cannot be found" error. i set mime types for .xap , .xaml , ... my os is windows server 2003 sp1 r2. what is problem? ...

Bind Dictionary to Chart

I'm new to Silverlight and I am trying to display the contents of a Dictionary in a Graph: In codebehind: ChartData = new Dictionary<DateTime, double> {{DateTime.Now, 10}, {DateTime.Now, 20}, {DateTime.Now, 15}}; And in the silverlight XAML: <toolkit:Chart HorizontalAlignment="Left" Margin="113,168,0,0" Name="chart1" Titl...

how can i open xaml file without clearing the visual root

I want to open a new xaml file while keeping the original root running. At the same time as I want to play a video and when use click something else I don't want to exit I want to keep running the video in the background, any ideas or solutions? ...

Silverlight RichTextBox: How to set custom font from resource/stream?

Hi everybody, Does anybody know how to set the font within a RichTextBox from a Stream? TextBlock and TextBox do have the option to set the FontSource, but classes like Run, Paragraph and the whole RichTextBox miss that. :( Any reason for that? Is there any known way to achieve that? I already tried to set the whole source URI withi...

mvvm-light and silverlight 4 compatibility

Hi, I've downloaded the mvvm light toolkit source 4157, and try to use the EventToCommand.SL sample. It works well in Visual Studio 2010, if I use the silverlight 3 framework. But if I select the silverlight 4 version (EventToCommand.SL project properties), nothing appears : the ViewModel method associated with the Command property is ...

Blend crashes every time I try to use sample data

I open my project, go to data tab, new sample data. It adds a SampleDataSource. I try to change the name of the first property and blend immediately crashes: http://imgur.com/3hfq8.png This happens no matter what page or control I am on. I tried this in a brand new project and I DID NOT get the error. Can't really start this project ov...

ArrayOfAnyType issues when calling the method:GetRangeA1 excel web services in the silverlight 4.0

I create a simple silverlight 4.0 application used to read the excel file data in the share point 2010 server. I try to use the "Excel Web Services" but I get an error here when calling the GetRangeA1 method: An unhandled exception of type 'System.ServiceModel.Dispatcher.NetDispatcherFaultException' occurred in mscorlib.dll Additional ...

Silverlight MVVM - How Can I Declaratively Bind a ComboBox in a DataGrid CellEditingTemplate using a ViewModel?

I am trying to declaratively bind a ComboBox within a DataGrid CellEditingTemplate using a ViewModel. The ComboBox is not being bound. What am I doing wrong? XAML: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sdk="http://schemas...

Declarative / Imperative Cross Over

I'm looking for a way to gain reference to a class that was instanciated via XML, but I need reference to it in imperative code. I usually do this via the datacontext of the control, but in this case, the user control does not have declaritive reference to the class that I require. I know I have seen how to gain a reference to a class ...