silverlight

Synchronous ADO.NET dataservices calls in Silverlight

I'm using ADO.NET dataservices in a Silverlight application and since the silverlight libraries don't support the ToList() call on the IQueryable I thought it might be possible to create an extension method around this called SilverlightToList(). So in this method I'm calling the BeginExecute method on my context as shown below: ...

Sites which support crossdomain.xml to allow Flash and Silverlight access

Please list one site which allows Flash/Silverlight access via crossdomain.xml file. Vote for your favorite sites. The goal is to build an up to date list of sites which can be directly accessed via Flash/Silverlight without a server-side proxy. ...

Can I Access an ADO .Net Data Service from Silverlight accross domain if I have a proper crossdomain.xml file in place and do not rely on the ADO .Net Silverlight Client components?

If I create an ADO .Net Data Service, can I access it from Silverlight accross domains as long as I don't use the ADO .Net Silverlight Client helpers and I have a propery crossdomain.xml file in place? (I would essentialy just get the raw xml and parse it myself) Asked another way, is it the ADO .Net Data Services Silverlight Client com...

Binding from a custom property

Hello, I'm new to the forum and very new to silverlight. Myself and my coworker are working on a custom application. We are building a menu system that will only display buttons if that useris in an assigned role. A new property was created to allow roles to be defined, and for testing purposes we are simply trying to assign that valu...

Silverlight - dynamic binding of a listbox.ItemTemplate

I have this: <ListBox x:Name="PART_lstAttributes" Grid.Row="1" Style="{StaticResource GlossyBlackListBox}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock x:Name="txtAttributeName" Text="{Binding AttributeName}"></TextBlock> </StackPanel> </DataTemplate> ...

Pass objects to silverlight through server side asp.net code

Is it possible to pass objects (serializable classes or other ways) to a Silverlight control through asp.net server side code? ...

Silverlight,asynchronous,lazy loading what's the best way ?

Hello, I started to use silverlight/flex and immediately bumped into the asynchronous service calling. I'm used to solving the data access problems in an OO-way with one server fetch mechanism or another. I have the following trivial code example: public double ComputeOrderTotal(Order order) { double total = 0; // OrderLines ar...

In Silverlight why are some properties prefixed with x e.g x:name and some are not?

In Silverlight (and I guess WPF) why are the properties x:name x:fieldmodifier x:uid the only ones with the prefix x. I understand the x prefix is used to refer to the XML namespace but there are a number of other properties that do not use a prefix such as width. Identifying a control is such a common task it seems odd to require a pr...

How to space items evenly in a horizontal Silverlight Listbox

In Silverlight, I have a Vertical ListBox that has a Horizontal ListBox for each item. I want the items in the HorizontalListbox to space evenly across the width of the parent (Vertical) ListBox. How can I do this? <ListBox x:Name="MachineListBox" Background="Green"> <ListBox.ItemTemplate> <DataTemplate> ...

Consuming a "Table of data" in Silverlight

Since silverlight does not have any support for DataSets/DataTables, what would be the best approach if I wanted to consume a table of data from a database? A bit like this: user action in silverlight -> get data from server -> display in GridView The thing is, I do NOT know how many and which columns the data will have... Can I bind ...

Silverlight 2 Error Code: 4004

Hey guys/gals. I have a silverlight 2 app that has an ObservableCollection of a class from a separate assem/lib. When I set my ListBox.ItemsSource on that collection, and run it, I get the error code: 4004 "System.ArgumentException: Value does not fall within the expected range." Here is part of the code: public partial class Page : Use...

Silverlight enabled WCF Service vs Web Service vs ADO.NET Data Service

Ok, all these methods of getting data in a Silverlight control are confusing me. I've looked at ADO.Net Data Services, Web Service and Ailverlight-enabled WCF services. I'm just not sure when one is appropriate to use over another. What pros/cons do each offer? I've built a web app, and a silverlight control. I will be adding one of ...

Does TDD apply well when developing an UI?

What are your opinions and experiences regarding using TDD when developing an user interface? I have been pondering about this question for some time now and just can't reach a final decision. We are about to start a Silverlight project, and I checked out the Microsoft Silverlight Unit Test Framework with TDD in mind, but I am not sure ...

Silverlight tutorials and/or Books for the road?

I'm going on an extended road-trip, and I plan on bringing a laptop. I was thinking of downloading a bunch of the Silverlight articles at silverlight.net/learn (I'm not a videos guy) I'm comfortable with /(?:Iron)?Python|Ruby|C#/. I'm not looking for .NET or language intros. I'd like sources that get down-and-dirty with DLR and Silverlig...

Silverlight browser support does not seem to be ubiquitous?

Hello We have been using Adobe Flex for a major project but it's just too slow. We're considering switching to Silverlight. The problem seems to be that Silverlight is not as widely supported by browsers as Flex/Flash is. For example I tried to access the Silverlight showcase using Safari for Windows but it didn't work. A web RIA pl...

Silverlight performance

We are considering switching from Adobe Flex to Silverlight because Flex is just too slow. I'm interested not in graphical performance, but computational performance and the speed at which it executes code. Does anyone have any anecdotes to share about their experience of Silverlight performance? Thanks ...

Anyone used the Silverlight datagrid?

Hi there folks We're thinking of building a major project around the Silverlight datagrid. If any has any stories, comments or opinions on their persona experience of developing with the Silverlight datagrid, then I'd love to hear them. ...

Flash (or Silverlight) on the iPhone

I'm interested in developing applications on the iPhone and being a .NET & ActionScript developer I'm a bit scared from the learning curve of Objective-C Cocoa Touch programming. I know that Adobe has Flash player ready for iPhone and I think that Apple doesn't want it just for political reason. Is there any easy alternative to build a...

Is Silverlight 2.0 a viable game development platform?

I've coded some smaller projects using Silverlight 2.0, which is fairly impressive. Does Silverlight 2.0 have what it takes to be a game development platform for the web? (Are the framerates high enough, will there be 3D engines developed, and many more questions) Yes or no, with detail if desired, and why. ...

Silverlight on Linux

Hello all, did anyone try to view a Silverlight site on a Linux machine? afaik, there is something called mono on Linux which is a try to port .NET on Linux machines, but did one really try to use it? did it work? ...