silverlight

Silverlight on the Mac

The company I work for is developing an ASP.NET application that is used by both PC and Mac users. We're considering making our next version in Silverlight. If you've developed a business application in Silverlight, are there differences in appearance/performance etc between Silverlight on the PC and Silverlight on the Mac? If you've h...

Can you programmatically tell Media Element to stop downloading a file in silverlight?

I have a full length movie file on the server. I want to create a wall of media clips from that one file. I can create the clip functionality by setting the position for the start of the clip and listening for a marker telling me when to stop playing. However, I would like to have the Media Element stop download the rest of the file a...

ViewModel collection bindings in Silverlight

I have two listboxes one with all the projects and one with only active projects. I have one observablecollection with all my projects in it bound to the listbox with all projects. What do I bind to the other listbox? Do I need to create a new collection and sort out the active ones. And when I add a new active project I need to add to ...

What is the point of a Policy Server? (Silverlight)

I've been messing around with Silverlight sockets and after scratching my head a bit as to why my connections were being denied I realized I needed to set up a policy server. Silverlight connects to the policy server port on the host specified by the socket connection. The policy server returns an XML file designating what access is allo...

How to create a CollectionView for ObservableCollection<T> in Silverlight

I'm working with silverlight and I want to filer an ObservableCollection. So I started to look att ICollectionView, because there is no CollectionViewSource in Silverlight and it contains an absure amount of methods and events. I've searched for a while and I wonder if anyone has example code of an implementation of ICollectionView? ...

Anyone have experience with slide.show2?

I'm looking to use Slide.Show2 on a website, however I have run into a few problems, and I am wondering if they are worth fighting through or not? Problems Thus Far: XmlDataProvider does not support query string parameters in the Path argument. While I've managed to hack around it, this raises some serious warning flags to me about t...

What's wrong with this Silverlight template?

I am playing with templates in Silverlight 2.0. I copied this... <Style x:Key="RoundButton"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Ellipse Width="200" Height="200"> <Ellipse.Fill> ...

Silverlight vs Adobe Air

Now with Silverlight 3 (offline, out of browser stuff), what are the main differences between the two technologies? ...

Silverlight add datagrid column with usercontrol using xamlreader

Hi! I try to add a column to my datagrid using the follwing code, but I'll get an browser crash (can't see a exception). I've added a sample project here: http://cid-5d0909fd6cd506a0.skydrive.live.com/self.aspx/Offentlig/DependencyPropblem.zip The code is as follow: private void LoadDynamicDataColumnTemplate() { string x...

Can Silverlight contain ActiveX?

Howdy and Thanks in Advance! I'm trying to access the USB port from a Silverlight Application. Because Silverlight runs in the sandbox, it isn't able to do so. Is it possible to run an ActiveX control from inside a Silverlight Application? (Preferably not an overlay) If so: What examples exist? What are the best practices for this...

Does VS 2008 SP1 support Property Editing for Silverlight 3?

I'm a Silverlight newbie. Just downloaded version 3.0 after the Mix announcement. I'm running VS 2008 SP1. When I select a design element in the preview pane or in XAML, the properties window is disabled and displays Property Editing Not Available I can open the solution in Blend and have no problems with it's property editor. ...

Silverlight: How to obtain ProcessorCount?

I have a computationally intensive task that users can perform using a Silverlight app. It is a very easy task to parallelize. My problem is that the System.Environment.ProcessorCount is Security Critical, so I can't easily check that. I don't want to just QueueUserWorkItem because I don't want to have more than the number of process...

Silverlight generic.xaml

Can I use generic.xaml in Silverlight to set the style of all TextBlock in the application? <ResourceDictionary xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Style TargetType="TextBlock"> <Setter Property="Foreground" Value="White" /> <Setter Prope...

Silverlight and audio synthesis

Hi, is it at all possible to generate sound on-the-fly in a Silverlight app and play it? I.e. if I want to play a sine-wave, can I generate a buffer and feed it to some media API? Cheers Nik ...

How to debug Silverlight against Google Chrome

Does anyone know how to debug a Silverlight 2 app running in Google Chrome from Visual Studio? Even after making sure that Chrome is the debugging browser, breakpoints are still not being hit. ...

Silverlight 3.0 "Push" Capability information

Does anyone have a good reference point, or can provide a summary of the enhanced "push" implementation to be changed/added in Silverlight 3.0? I would like to compare this area to Silverlight 2.0 and to XMPP/Jabber. ...

Silverlight sample applications

I'm developing small silverlight apps since a few months and now I'm looking for some resources to improve my apps. I read through quite a bunch of samples and I know the basic technologies, now I'm looking for a complete, robust Silverlight application that I could study to learn the best SL app design approaches. I'm not looking for sm...

Linq to Sql with ADO.Net Data Services

I am considering using ADO.Net Data Services in a project for the purpose of getting data over to a Silverlight client. I'd like to use the Data Services with my existing Linq To Sql classes and designer. I probably could regenerate everything as ADO.Net entity objects, but I feel this would be a bad design for DRY reasons. I'm new to...

Hide content in listbox item depending on a binding property in Silverlight

I have xaml that lookes like this <ListBox> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Name}" /> <StackPanel Orientation="Vertical" x:Name="contentPanel" > Content goes here... </StackPanel> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> The listbox binds to an object with a...

Can Flash or Silverlight be used for kiosk applications? How?

My experience is only with Flash and I'm afraid I have not kept up to date. The last time I tried this I was vaguely remember having a problem with Flash where it would slowly eat memory until eventually the OS locked up. That was a couple of years ago and maybe it wasn't due to Flash. Are there issues with using Flash or Silverlight ...