silverlight

How do I get AccessKey or AcceleratorKey to work in Silverlight?

I have some buttons in my Silverlight 2 app that I want the user to access from the keyboard. If I understand correctly, I should be able to use AutomationProperties.AccessKey. For example: <Button Content="Close" Name="btnClose" AutomationProperties.AccessKey="CTRL+Q" HorizontalAlignment="Left" /> But I can't get this to work? What...

Showing Excel Documents on the Web

I'm looking for a way to present excel documents on the web either by : converting Excel documents to html, css and javascript or by, using silverlight control I'm not looking for a way to program the conversion by my self. What I'm after is a control or library (open source or third - party ) which will enable me to present excel file...

Single click handler on Silverlight page

Is there a way to catch a MouseLeftButtonDown (or other mouse event) at a page or user control level and then be able to determine which child control was actually clicked? ...

How to emulate "AppendDataBoundItems" in Silverlight's ComboBox?

In Asp.Net Combobox, there is a useful property, AppendDataBoundItems, that causes whatever items are bound to the control to be actually appended to whatever "statically" added ad design time. This is useful for "default" values that the user can specify when no item in the available ones meet the criteria, or to specify a special "null...

Why can't I define a ResourceDictionary in XAML and instantiate it by itself?

Ok, that question was really hard to ask in one line. Here's the deal. If I have this XAML: <ResourceDictionary x:Class="MyAssembly.MiscResources" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <SolidColorBrush x:Key="MyBrush" Color="Purple" ...

Alternatives to "Programming Silverlight 2"?

I know a lot of people on here were eagerly awaiting the Jesse Liberty / Tim Heuer book on Silverlight 2. Amazon have just cancelled my pre-order, and I've noticed all mention of the book seems to have disappeared from the O'Reilly site, so I guess the book's a gonner. Have any other books emerged as reasonable Silverlight 2 sources? ...

Appending Silverlight Toolkit AutoCompleteBox with selected item

I'm working with an Autocomplete box from the Silverlight Tookit (December release). As the user types, I use a webservice to return an ItemsSource containing a lookup of only the word that the user is currently typing into the AutoCompleteBox (as oppossed to the entire phrase, which is the default behavior). What I'd now like to do is...

Anyone with experience of targeting Silverlight & WPF ?

Is it possible to develop against Silverlight and WPF using the same source code? Maybe using some #define blocks where it is necessary. ...

Where to learn proper way to use Silverlight (or WPF)

Approaching Silverlight development is a rather daunting task as it seems to require a rather different mindset to work I have done in the past. I have been working on it for several months and we have already released an application that presents form-based pages. So I have the basics of XAML for layout but what I need to do now is mov...

Silverlight : Implementing Images

I just created a puppet in Microsoft Blend consisting of imageboxes that are displaying a dummy image(Which is a white box). In blend it shows the images but in visual studio (and when running the application) the images aren't showing. This is a snippet of the code I am using <Image Source="/Images/BodyParts/dummy.jpg" Height="10" Wid...

How do I make custom controls in Silverlight?

I've created a custom control using Expression Blend: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ...

Graph visualisation in Silverlight

I have a data structure that represents a directed graph and I'm looking for a good Silverlight visualisation to allow me to navigate from node to node, preferably with some nice animation. Does anyone know of any good UI controls or frameworks for this kind of display? Even a sample from another field (maybe a social network?). My grap...

How can I manipulate a RagDoll made with farseer physics in Silverlight?

I made a ragdoll similar to the one in this demo. This rag doll will be used for a turn based rpg game where the physics will be used for animations such as character taking damage, dying, falling down, etc. What I am pondering at the moment is as how should go about this, should I stick the rag doll by the head to the background (leavi...

Silverlight resource dll build prevention.

When you build a silverlight application, it always outputs a whole bunch of localization resource dlls into \bin\de\ \bin\es\ \bin\fr\ etc (which can end up packaged in the .xap). This is wonderful but I'm not using these, they aren't required for the app to operate and they are cluttering up the root of our TFS build server. I real...

How do I display a single item using a DataTemplate in Silverlight?

I am trying to display a single item (not contained in a collection) using a DataTemplate. Here's what I've got so far, which is displaying nothing. Replacing ItemsControl with ListBox displays an empty listbox (so I know the element is there). <ItemsControl ItemsSource="{Binding Session}" ItemTemplate="{...

What are the often misunderstood concepts in Silverlight?

Silverlight 2.0 has been out for a little while now. What are the concepts that you often see used incorrectly or think are misunderstood? ...

Can a Silverlight MediaElement open a video from the client?

Can a Silverlight MediaElement open and play a video from the client, after it is selected from an open file dialog? ...

Silverlight 3 class library

I'm currently working on a UI development project and it was decided to implement it in Silvelight. I understand that Microsoft developers try to minimize size of the distribution and that's why some (lots) of the classes in regular .NET Framework are not included. Is it expected to see more classes included in Silverlight 3 library? ...

.net Runtime - Silverlight Runtime = ?

I've googled around a bit, and I haven't been able to find a good listing of what classes from the .net CLR are not included in the 'CoreCLR' aka Silverlight. What is Silverlight missing from the Windows .net Framework? Also, is there anything that the Silverlight runtime has that the .net Framework doesn't? ...

Silverlight implementation of Flare

Does anyone know of a Silverlight port of the Flare framework? Google turned up nothing but I wouldn't be surprised if someone somewhere is porting this? ...