Questions tagged [silverlight-4.0]

Silverlight is Microsoft's cross-browser, cross platform plug-in for media experiences and rich interactive applications. The version 4 was released in April 2010.

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.

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

Platforms Supported

  • Silverlight 4 for Window (Chrome, Firefox, IE 6-9) & Mac (Firefox, Safari)
  • Windows Phone 7, Windows 8

Links

Development & Design Tools

See also:

5179 questions
17
votes
1 answer

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…
Anthony
  • 1,651
  • 1
  • 17
  • 31
17
votes
2 answers

How can I pass the event argument to a command using triggers?

So I have a simple setup, an autocompletebox with its Populating event that I want to bind to a command. I use clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity (is there a better namespace for doing this?) It's not…
Trident D'Gao
  • 18,973
  • 19
  • 95
  • 159
16
votes
5 answers

Silverlight 4.0 PDF Viewer

Any free control to view PDF for Silverlight? or how to view pdf in silverlight from memory stream?
xscape
  • 3,318
  • 9
  • 45
  • 86
16
votes
3 answers

Silverlight 4.0: How to convert byte[] to image?

public Image Base64ToImage(string base64String) { // Convert Base64 String to byte[] byte[] imageBytes = Convert.FromBase64String(base64String); MemoryStream ms = new MemoryStream(imageBytes, 0, …
xscape
  • 3,318
  • 9
  • 45
  • 86
16
votes
4 answers

How to wrap text in Silverlight DataGridTextColumn

I am trying to create a simple DataGrid in Silverlight 4 Beta but cannot seem to figure out how to get my Note column to wordwrap. The table represents notes made on an order, so they will be of variable length. i want the 'Note' cell to expand…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
16
votes
5 answers

Streaming a webcam from Silverlight 4 (Beta)

The new webcam stuff in Silverlight 4 is darned cool. By exposing it as a brush, it allows scenarios that are way beyond anything that Flash has. At the same time, accessing the webcam locally seems like it's only half the story. Nobody buys a…
Ken Smith
  • 20,305
  • 15
  • 100
  • 147
15
votes
4 answers

How to preserve TwoWay binding of CurrentItem when databinding to CollectionViewSource in ComboBox

Lets say we got a simple VM class public class PersonViewModel : Observable { private Person m_Person= new Person("Mike", "Smith"); private readonly ObservableCollection m_AvailablePersons = new…
Valentin Kuzub
  • 11,703
  • 7
  • 56
  • 93
15
votes
2 answers

Visual Studio Debugging with Silverlight 4 and Firefox

When trying to debug a Silverlight 4 application in Visual Studio 2010 with Firefox as my browser, I am unable to hit any breakpoints. I get the message "breakpoint will not currently be hit".
Craig
  • 6,869
  • 3
  • 32
  • 52
15
votes
2 answers

Get the ListBoxItem in a ListBox

I am trying to change the Control template on a ListBoxItem when It is selected from the ListBox. To do so, I was going to get the selected ListBoxItem from the ListBox itself, and set the control template on that. How would i go about doing this? I…
Ben
  • 3,926
  • 12
  • 54
  • 87
15
votes
2 answers

ItemsSource vs DataContext in binding case

My main question is about binding case in the scene that we have multiple sources for a control(a combobox inside a datagrid)(or having both datacontext and itemssource). Then how can we know which source the binding will use? (any syntax to clarify…
Tai
  • 417
  • 1
  • 6
  • 15
14
votes
5 answers

How to access a specific item in a Listbox with DataTemplate?

I have a ListBox including an ItemTemplate with 2 StackPanels. There is a TextBox in the second StackPanel i want to access. (Change it's visibility to true and accept user input) The trigger should be the SelectionChangedEvent. So, if a user…
sust86
  • 1,870
  • 2
  • 18
  • 25
14
votes
2 answers

Where does the navigation logic belong, View, ViewModel, or elsewhere?

I a button in a view, bound to an ICommand property of the ViewModel (actually it's RelayCommand from mvvv-light) If the user clicks on the button I want to navigate to a new view. Of course the NavigationService is part of the View not the…
Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
14
votes
1 answer

How to play non buffered WAV with MediaStreamSource implementation in Silverlight 4?

Background I'm trying to stream a wave file in Silverlight 4 using MediaStreamSource implementation found here. The problem is I want to play the file while it's still buffering, or at least give user some visual feedback while it's buffering. For…
kyrisu
  • 4,541
  • 10
  • 43
  • 66
14
votes
2 answers

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

I installed Windows 7. I then installed Web Developer 2010 Express from here with the Web Platform Installer. I then installed the the April 15 release of Silverlight 4 Toolkit from here. I then added this reference: alt text…
14
votes
1 answer

Launch Silverlight Out-of-Browser from browser post-installation

I am building a prototype application in Silverlight 4 Beta and I am using the Out-of-Browser (OOB) functionality. I need the OOB functionality to be able to access the local file system, and I would like to avoid writing an ActiveX component or…
martijn_himself
  • 1,560
  • 3
  • 18
  • 34