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

INotifyPropertyChanged in UserControl

I have a custom control which is inherited from TextBox control. I would like to implement the INotifyPropertyChanged interface in my custom control. public class CustomTextBox : TextBox, INotifyPropertyChanged { public event…
user295541
  • 1,015
  • 4
  • 16
  • 26
13
votes
3 answers

Silverlight page loads insecure content from Microsoft

I have a website that consists mainly of a single Silverlight application. The website is configured to run over HTTPS which works great. However when the site is loaded in Chrome the warning is given that "The page at…
Mel Green
  • 3,571
  • 4
  • 26
  • 32
13
votes
2 answers

Why I can't add a class library project reference to a Silverlight project?

I am a newcomer to Silverlight and while I have been following some tutorials I wanted to create a new project with a class library so that I can use it from my page's xaml.cs code behind. But when I tried to add my class library project I get a…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
13
votes
4 answers

Windows phone 7 config / appSettings?

Is there a way to add a config file for WP7 apps like there is for Windows apps and web apps? I just need an easy way to save a few settings I'd rather not create my own object and have to serialize/deserialize an xml file. There doesn't seem to by…
Rush Frisby
  • 11,388
  • 19
  • 63
  • 83
13
votes
11 answers

VS2010 Code: 2104 Could not download the Silverlight application

I've just started getting this Javascript error running VS2010 with SL4 Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server…
rotary_engine
  • 559
  • 2
  • 6
  • 17
12
votes
4 answers

How can I get a screen resolution of Device (Windows Phone)

How can I get a screen resolution of Device from settings (Windows Phone) ?
12
votes
0 answers

Why do the following differences in Silverlight implementations exist between MAC and Window versions

I was reading the through the list of differences between the Silverlight implementation for Windows and the implementation for the MAC. Which can be found HERE. While some of the differences are obviously related to the platform diffirences etc.…
Chris Taylor
  • 52,623
  • 10
  • 78
  • 89
12
votes
2 answers

How can I convert WriteableBitmap to BitmapImage?

BitmapImage bitmapImage = new BitmapImage(new Uri("arka_projects_as_logo.png", UriKind.Relative)); Image uiElement = new Image() { Source = bitmapImage }; ScaleTransform t = new ScaleTransform() { ScaleX = 0.2, ScaleY = 0.2 }; WriteableBitmap…
Sergey
  • 47,222
  • 25
  • 87
  • 129
12
votes
3 answers

How to wait for state changing transition to finish in Silverlight 4?

I need to change state of a control and then do some action. To be specific, I want to run an animation before a control is hidden. I would like to do something like that: VisualStateManager.GoToState(control, "Hidden", true); // wait until the…
gius
  • 9,289
  • 3
  • 33
  • 62
12
votes
1 answer

Windows Phone 7: Highlight Selected Listbox item

I have the following XAML (simple list box with custom DataTemplate). I'm trying to figure out how to highlight the selected item (maybe background colour change). I figure I need to do something with Styles in Expression Blend but I'm not quite…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
12
votes
2 answers

Seeking Font Strategies for Silverlight Apps

As I'm working through an SL3/SL4 application, and starting to work with fonts, I'm finding a lack of documentation and best practices on font strategies. For example: Are there common fallback fonts for the supported font set (Arial, Comic Sans…
Todd Main
  • 28,951
  • 11
  • 82
  • 146
12
votes
11 answers

Best Silverlight Controls

Who provides the best 3rd party Silverlight controls for LOB applications? In the past I’ve used Infragistics for WinForm controls which were very good and they also provide good support. However, they seem to be a bit behind the likes of Telerik in…
Carl Rippon
  • 4,553
  • 8
  • 49
  • 64
11
votes
2 answers

Moving From WPF to Silverlight: What are the Key Differences?

I have done one full project using WPF, and have (at least) a pretty good grasp of the main concepts, like XAML, Databinding, and MVVM. We did everything "by hand"--we did not use an MVVM framework or third-party tools. All XAML was written by…
Phil Sandler
  • 27,544
  • 21
  • 86
  • 147
11
votes
9 answers

Is there a way to programmatically quit my App? (Windows Phone 7)

I'm writing a windows phone 7 app. I have "fatal exception" handling code where I know for sure that the app is totally busted and there's no point in continuing. (I'm hoping I never get here...). Since there's nothing more my app can do other…
will
  • 3,975
  • 6
  • 33
  • 48
11
votes
4 answers

The provided URI scheme 'file' is invalid expected 'http'

I created a small Silverlight 4.0 / RIA Services application and tested it. I developed the app on a machine at home and needed to move it to the production domain at work. I did this by pushng it to the source repository and then cloning it to a…
Jim Reineri
  • 2,830
  • 3
  • 31
  • 32