Questions tagged [silverlight]

Silverlight is Microsoft's cross-browser, cross platform plug-in for media experiences and rich interactive applications.

Microsoft Silverlight is an application framework for writing and running rich Internet applications with emphasis on multimedia, animations, and graphics, with features and purposes similar to those of Adobe Flash. The run-time environment for Silverlight is available as a plug-in for most web browsers. While early versions of Silverlight focused on streaming media, current versions support multimedia, graphics and animation, and give developers support for CLI languages and development tools. Silverlight is also one of the two application development platforms for Windows Phone, but web pages which use Silverlight cannot run on the Windows Phone or Windows Mobile versions of Internet Explorer, as there is no Silverlight plugin for Internet Explorer on those platforms.

It is the standard for writing Windows Phone applications and is being promoted for Line of Business (LoB) applications.

Platforms Supported

  • Silverlight for Windows (Chrome, Firefox, IE 6 and later) & Mac (Firefox, Safari and Chrome)
  • Windows Phone

See supported platforms for details

Links

Development & Design Tools

FAQ:

  1. WPF vs Silverlight
  2. How does Windows 8 Runtime (WinRT / Windows Store apps / Windows 10 Universal App) compare to Silverlight and WPF?
  3. How to profile a silverlight application?
  4. Silverlight vs Flex
  5. Getting started with Silverlight development
  6. How to bind DataGridColumn.Visibility?
  7. Creating a Silverlight DataTemplate in code
  8. Display GIF in a WP7 application with Silverlight
  9. Silverlight: stretching to remaining space in StackPanel
  10. Iterating through an enumeration in Silverlight?

More information:

See also:

27358 questions
379
votes
5 answers

Difference between SelectedItem, SelectedValue and SelectedValuePath

What is the difference betweeen the following: SelectedItem SelectedValue SelectedValuePath All these dependency properties are defined in Selector class. I often confuse SelectedItem with SelectedValue , and SelectedValue with SelectedValuePath.…
Nawaz
  • 327,095
  • 105
  • 629
  • 812
246
votes
32 answers

How to automatically select all text on focus in WPF TextBox?

If I call SelectAll from a GotFocus event handler, it doesn't work with the mouse - the selection disappears as soon as mouse is released. EDIT: People are liking Donnelle's answer, I'll try to explain why I did not like it as much as the accepted…
Sergey Aldoukhov
  • 20,978
  • 14
  • 68
  • 98
198
votes
11 answers

How do I space out the child elements of a StackPanel?

Given a StackPanel: Apple Banana Cherry What's the best way to space out the child elements so that there are…
GraemeF
  • 10,997
  • 5
  • 50
  • 73
195
votes
4 answers

Passing an enum value as command parameter from XAML

I want to pass an enum value as command parameter in WPF, using something like this:
168
votes
8 answers

Getting Started with Windows Phone 7

This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc. When posting, please use the friendly format of [Actual Name of resource with a link] not [some long URL with no meaning unless I click on it] General…
ctacke
  • 65,117
  • 17
  • 91
  • 151
159
votes
8 answers

This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread

I have a DataGrid which is populating data from ViewModel by asynchronous method.My DataGrid is :
Anindya
  • 2,318
  • 2
  • 19
  • 25
127
votes
4 answers

WPF vs Silverlight

Possible Duplicate: What is the difference between WPF and Silverlight application? What are the exact differences between WPF and Silverlight?
Sauron
  • 15,788
  • 40
  • 119
  • 171
114
votes
10 answers

Could not find an implementation of the query pattern

In my silverlight application I am trying to create a database connection using LINQ. First I add a new LINQ to SQL class, and drag my table called "tblPersoon" into it. Then in my service file I try to execute the following…
Schoof
  • 2,401
  • 5
  • 25
  • 39
105
votes
6 answers

How to trigger event when a variable's value is changed?

I'm currently creating an application in C# using Visual Studio. I want to create some code so that when a variable has a value of 1 then a certain piece of code is carried out. I know that I can use an if statement but the problem is that the value…
James Mundy
  • 3,701
  • 5
  • 31
  • 54
92
votes
10 answers

TextBox.TextChanged event firing twice on Windows Phone 7 emulator

I have a very simple test app just to play around with Windows Phone 7. I've just added a TextBox and a TextBlock to the standard UI template. The only custom code is the following: public partial class MainPage : PhoneApplicationPage { public…
Jon Skeet
  • 1,261,211
  • 792
  • 8,724
  • 8,929
90
votes
11 answers

Cannot install silverlight 4 tools on visual studio 2010 sp1

I've installed Visual Studio 2010 (fresh install), then applied the SP1. Now I've tried to install the silverlight 4 tools, but i'm getting a strange error message : "Visual Studio 2010 or Visual Web Developer Express 2010 or Visual Phone Developer…
75
votes
4 answers

How to create a style based on default style?

How to create a style based on default style in Silverlight? For example, in WPF we make it like: