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
10
votes
3 answers

How to get accordion region to expand (vertically) to dynamic content?

I have a main datagrid, then an accordion control below it. In one of the accordion items I have another datagrid that binds to the selected item of the first datagrid. Simple xaml is:
Adam
  • 1,580
  • 21
  • 40
10
votes
2 answers

Initializing a viewmodel

Something that continues to confuse me about MVVM - if I use the view-first approach to constructing my objects (this appears to be the most common approach, at least after much reading and searching), how do I get contextual information into the…
nlawalker
  • 6,364
  • 6
  • 29
  • 46
10
votes
2 answers

Why is the MSBuild task ResolveProjectReferences taking a really long time?

I have a Silverlight 4 solution that takes a really long time to build from both VS2010 and the MSBuild 4 command line. The solution contains 42 projects, one is a Silverlight application project, one web application project, and the rest are class…
Andronicus
  • 1,799
  • 1
  • 14
  • 28
10
votes
1 answer

using MVVM light messenger with Silverlight 4 ChildWindow dialog class

Greetings! Am enjoying using MVVM light -great framework - has made my life much easier, and has removed a number of barriers that were proving difficult to overcome.... Question: I am attempting to setup a custom dialog box for editing messages…
10
votes
2 answers

Silverlight 4 Equivalent to .NET Timer Control

Basically I'm wanting to insert a dynamic clock in my project. Right now I'm using the dateTime control which is fine but it's static. I need the clock to change digits with each second. In c# there is a Timer control that I would be able to use…
AmbiguousX
  • 1,704
  • 4
  • 24
  • 39
10
votes
4 answers

Silverlight HttpWebRequest.Create hangs inside async block

I am trying to prototype a Rpc Call to a JBOSS webserver from Silverlight (4). I have written the code and it is working in a console application - so I know that Jboss is responding to the web request. Porting it to silverlight 4, is causing…
J.K.J
  • 265
  • 3
  • 11
10
votes
2 answers

Why is the dictionary debug visualizer less useful in Visual Studio 2010 for Silverlight debugging?

I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those shows the Count and Non-Public members, Non-Public members continues the…
9
votes
5 answers

How to use TextBox.Watermark in Silverlight 4?

While browsing MSDN documentation, you may come across this gem: TextBox.Watermark. "Awesome! I've been wanting a built-in way to do watermarking on my text boxes! This is great, let me go ahead and set that in XAML!"
Unknown
  • 721
  • 1
  • 8
  • 12
9
votes
2 answers

Disable resizing out of browser Silverlight 4 Window

Possible Duplicate: How can I prevent the user from resizing the silverlight out-of-browser window? Is there any way to actually remove the ability to maximize/resize the out of browser window since I want my application to be of a certain…
Sandeep Bansal
  • 6,280
  • 17
  • 84
  • 126
9
votes
1 answer

Binding Source-Property of MediaElement to FileInfo

I have a viewmodel class that provides a property MediaFile of type FileInfo and i want to bind the property to the Source property of a MediaElement. The problem is that, that the Source property of the MediaElement expects an Uri, but i can´t…
Jehof
  • 34,674
  • 10
  • 123
  • 155
9
votes
1 answer

DataTemplate vs ItemContainerStyle

I've seen a few other Silverlight 'vs' questions around, but couldn't find any for this particular match-up. I'm trying to define the way in which my objects bound to a ListBox will display. I've defined a DataTemplate, but I'm really not sure…
Town
  • 14,706
  • 3
  • 48
  • 72
9
votes
1 answer

Refresh problems with Silverlight and Chrome

On a windows 7, visual studio 2010, I can't get my silverlight app to refresh in Chrome 10.0.648.204. Even when closing the tab displaying the app. Using internet explorer 8 I have no problems. Heelp I prefer using Chrome.
Carlo V. Dango
  • 13,322
  • 16
  • 71
  • 114
9
votes
4 answers

How to bind to a singleton property in Silverlight 4?

Hi all first post here :) Let's start with a snippet of the code I'm using: public MyClass : INotifyPropertyChanged { private static MyClass _instance; public static MyClass Instance { get { if (_instance == null) …
Mathieu
  • 1,638
  • 2
  • 27
  • 50
9
votes
5 answers

"CreateRiaClientFilesTask" task failed unexpectedly

This error has started occuring when attempting to build my VS 2010 Silverlight project after some minor changes to my RIA domain services, which are hosted within the Silverlight website application. There appears to be no reason for this error and…
9
votes
4 answers

How to define resources AND a MergeDictionary with a key in a SL4 page

This is probably a really stupid question but I can't figure this out. I have a page with a MergeDictionary defined:
Rodney
  • 5,417
  • 7
  • 54
  • 98