silverlight-4.0

Silverlight TabItem template not working correctly

Hello everybody! In a SL4 application i need to restyle my TabItems (actually add a button in the header). So i took the TabItem's control template from here and added the functionality i wanted. This seems to work fine, (i could dynamically add tabitems) with one exception: i think this posted control template is behaving somehow "...

Silverlight 4, Mouse Wheel Events and Windowless Mode

I have a Silverlight 4 application that benefits greatly from having native mouse wheel support for a number of controls. The page that hosts the application has a HTML driven drop-down menu that would normally overlay the Silverlight control. In IE, I have to enable windowless mode to allow the overlay menu to work correctly (Firefox 3...

Silverlight 4 OOB application access HTML DOM of the page in WebBrowser control

Does anybody know if it is possible to access and manipulate an element in the html page that is rendered by the Silverlight 4 WebBrowser control. The scenario is like this. The user launches a Silverlight OOB application with elevated trust. The user manipulates some data in the application but must submit part of the data to an exter...

Can I use WCF NET.TCP Protocol from Silverlight 4 for a public website ?

Does anyone know if the new NET.TCP feature of Silverlight 4 can be used for public websites ? From what I know, in the Silverlight 4 Beta they announced that WCF NET.TCP can only be used for intranet applications. The reason I am asking this is because I want to recode my Silverlight multiplayer chess game (build with SL 3 Sockets supp...

Silverlight 4: Is it possible to bind ListBoxItem's width and height property?

Hi, I've got following issue: I've got a ListBox which items are lain on Canvas. I would like to be able to xamly position its elements. The ItemContainerStyle looks like this: <Style x:Key="ElementContainerStyle" TargetType="ListBoxItem" > <Setter Property="Canvas.Top" Value="{Binding BoundingBox.Y}" /> <Setter Property="Canvas.Le...

How to access a grid inside of a RichTextBox in Silverlight 4?

I am trying to allow a user to create a table inside of a RichTextBox. I can create a Grid inside of the RichTextBox, but I am having some issues with it. I start with this XAML in the Grid. <RichTextBox Name="TB1" AcceptsReturn="True"> <Paragraph TextAlignment="Center"> Hi everybody </Paragraph> <Paragraph> ...

Silverlight 4 Default Button Service

For a few months I have been successfully using David Justices Default Button example in my SL 3 app. This approach is based on an attached property. After upgrading to SL4, the approach no longer works, and I get a XAML exception: "Unknown parser error: Scanner 2148474880" Has anyone succesfully used this (or any other) default button...

Editing Data in Child Window with RIA Services and Silverlight 4

Is it possible to edit data in a SilverLight Child window when using RIA Services and Silverlight 4? It sounds like a simple enough question, but I have not been able to get any combination of scenarios to work. Simply put, I am viewing data in a grid that was populated through a DomainDataSource. Instead of editing the data on the ...

Silverlight 4 Data Binding with anonymous types.

Does anyone know if you can use data binding with anonymous types in Silverlight 4? I know you can't in previous versions of silverlight, you can only databind to public class properties and anonymous type properties are internal. Just wondering if anyone has tried it in silverlight 4? Thanks in advanced ...

How to reuse Silverlight projects in WPF?

I would like to use the same project (class library) in Silverlight and WPF. So, I started as a Silverlight Class Library. But the problem is: some of the common classes (i.e. Point, TouchAction) exists in different assemblies and compiler is showing the following error when I add the reference of Silverlight class library to WPF proje...

SNMP from the browser

There"s this idea of having a web app search for devices in the network (with elevated user permissions, of course). Checking the silverlight and flash APIs, there does not seem to be a way to do SNMP ( the UDP APIs are limited to multicasting media ). Anyone know a clever workaround? In windows, a small XBAP utility can do the SNMP ...

display list of items horizontally in Silverlight 4

I want to display a list of products horizontally in silverlight 4 page . The list of products will be obtained dynamically. Foreach product i show i need to dispaly the product image,name and its price. Please let me know if anyone had thougts on this. ...

How to databind a DependencyObject is SL4 in code behind ?

I saw that SL4 support binding on DependencyObject rather than FrameworkElement... This works fine in xaml, however I need to do that in code behind. However I don't see any method "SetBinding" in the DependencyObject class, how can I do ? Thanks for your responses ...

How to create unit test for actualHeight in Silverlight 4?

How can I write a unit test to test the actualWidth property to a userControl in Silverligh 4? I hoped that this method would pass, but it fails. I am using the Silverlight ToolKit april 2010, and VS 2010. <TestMethod()> _ Public Sub TestAcrtualWidth() Me.MyUserControl.Width = 100 Me.MyUserControl.UpdateLayout() Assert.Is...

MVVM visualstatemanager and focus

Using Silverlight 4. I have two visual states for my control. I want to change the focus from one textbox to another when the states change. What is the best way to do this using MVVM? I was hoping to use the visualstatemanager to do it or a behavior... but I have not figured out a way. ...

Best way to bind directly to objects returned from a web service

In silverlight 3 I had an object that had a property that was an observable collection. I returned this via a web service then databinded to it. Upgrade to silveright 4..... Now my program crashes because the Observable Collection is converted to an array. What is the best way to do this? Observable collection is not even an option ...

Silverlight 4 Code Signing

Hi All, I have successfully signed my elevated trust xap file with a cert bought from comodo. This works great on my local machine but when I transfer my xap to our server it is as if the xap had not been signed. Am I missing something that I need to do on the server to allow this to work? Thanks for any questions or input. ...

Silverlight P2P App (In Browser) - Will we get RTMFP?

Ok so from all my research I'm fairly positive P2P is not possible in Silverlight 4 (in browser). Flash can do P2P using Stratus/RTMFP which I believe uses UDP hole punching and a Stratus server to help initialize the connection. Is there any plans for Microsoft to add some kind of p2p rendezvous service in the future? Can we get a de...

Where can I find the F# runtime for Silverlight 4

I have been playing around with Silverlight & F# and tried to make a Silverlight 4 application in VS2010 Professional. When I try and compile my application I get the following error message... Error 12 F# runtime for Silverlight version v4.0 is not installed. Please go to http://go.microsoft.com/fwlink/?LinkId=177463 to download and...

Silverlight local storage

As you may know Silverlight has support for local storage. We are looking at creating Sl application that will work in off line mode. This application may require quite a bit of data to be cached on the client side. Obvious solution - use local storage with some sort of XMl based structure won't work as our PoC showed due to performanc...