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
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…
60
votes
7 answers

how to bind width of child element to width of parent element in silverlight

I have a grid whose width is "1*". So the actual width decided at runtime I think. Within that grid I have another grid whose width I want to set to the runtime width of parent grid. How Can I do that in xaml through binding.
52
votes
6 answers

Can we concat two properties in data binding?

Can we concat two properties together in binding expression? If possible without converter or without writing two textblocks and setting them individually?
TCM
  • 16,780
  • 43
  • 156
  • 254
47
votes
5 answers

Binding to Converter Parameter

Is it possible to bind to a ConverterParameter in Silverlight 4.0? For instance I would like to do something like this and bind the ConverterParameter to an object in a ViewModel for instance. If this is not possible are there any other…
dparker
  • 1,082
  • 1
  • 9
  • 14
47
votes
26 answers

Error HRESULT E_FAIL has been returned from a call to a COM component

In Silverlight 4 app; what does this error mean?: "Error HRESULT E_FAIL has been returned from a call to a COM component." It's a very generic error. The VS debugger doesn't point to the exact location of the error when debugging.
pencilslate
  • 12,958
  • 18
  • 58
  • 73
43
votes
3 answers

MVVM Light: how to unregister Messenger

I love the MVVM Light's Messenger and its flexibility, however I'm experiencing memory leaks when I forget to explicitly unregister the recipients (in Silverlight 4). The cause is explained here, but I'm fine with it as I believe it's a good…
Francesco De Vittori
  • 9,100
  • 6
  • 33
  • 43
42
votes
11 answers

Adding stored procedures complex types in Entity Framework

I am trying to use a stored procedure in Entity Framework that returns nothing. I did the following: Added a function (right click on stored procedure -> add -> function import-> Complex Type -> Get column information -> create New Complex-Type) My…
Kavitha
  • 1,447
  • 2
  • 22
  • 37
40
votes
2 answers

how to convert System.IO.Stream into string and then back to System.IO.Stream

I have property of Stream type public System.IO.Stream UploadStream { get; set; } How can I convert it into a string and send on to other side where I can again convert it into System.IO.Stream?
SOF User
  • 7,590
  • 22
  • 75
  • 121
36
votes
4 answers

The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range?

I am working on application contains a datepicker and if I set the time in that picker to a very old value or far in the future when I try to save this value in the database the server throw this exception, what is the cause of it? The conversion…
Geronimo18
  • 410
  • 1
  • 4
  • 8
36
votes
7 answers

MSBuild command-line error - Silverlight 4 SDK is not installed

My MSBuild command line is as follows: msbuild e:\code\myProject.csproj /p:Configuration=Debug /p:OutputPath=bin/Debug /p:Platform=x86 /p:PlatformTarget=x86 The project builds fine on my development machine in VS2010 but not with the command above.…
Ned
  • 363
  • 1
  • 4
  • 7
29
votes
2 answers

Silverlight 4.0 and WCF client proxy - how to create and how to close instances

Topic of Silverlight WCF service proxy lifecycle is not very clear to me. I have read various materials, resources, answers here, but still I don't completely understand the supposed best way to use them. I am using custom binary binding in…
Valentin Kuzub
  • 11,703
  • 7
  • 56
  • 93
29
votes
5 answers

After a computer crash my Visual Studio 2010 will not load an assembly

My computer blue screened. After my computer restarted, I ran my Silverlight application and got this error: Could not load file or assembly 'AsyncCtpLibrary' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT:…
Matt Hudson
  • 7,329
  • 5
  • 49
  • 66
28
votes
3 answers

Silverlight 4 / .NET 4 Debugging resource strings

I recently encountered a strange thing. On some of my company's servers when an exception message is printed out (yes, bad, I know. It's for debugging), the actual message isn't displayed. Instead it displays the key for an external string resource…
Kir
  • 2,905
  • 2
  • 27
  • 44
27
votes
8 answers

Why change from WPF to Silverlight 4?

I'm working on an application we made WPF instead of Silverlight as we wanted a full blown desktop application with the whole unique feeling and advantages that gives. However, with the announcement of Silverlight 4 I hear there is a buzz about…
stiank81
  • 25,418
  • 43
  • 131
  • 202
26
votes
17 answers

The Breakpoint will not currently be hit: No symbols have been loaded for this document

I am using VS2010, and Silverlight 4. When I run my code the debugging does not work (I get the above error on my breakpoints. When I clean my solution a warning comes up saying that the system cannot find the file specified (a project dll). It is…
Grayson Mitchell
  • 1,187
  • 4
  • 22
  • 43
1
2 3
99 100