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
23
votes
11 answers

Resources for Windows Phone 7 development

Windows Phone 7 has been unveiled and MS have announced all details of the development chain at the Mix10 conference. So this could be a good starting point/collection of online resources as they appear EDIT: I've removed the speculation tag now…
geocoin
  • 1,281
  • 1
  • 14
  • 30
22
votes
4 answers

4 points and Ellipse

I have 4 points.. i can draw a polygon usign this code var p = new Polygon(); p.Points.Add(new Point(0, 0)); p.Points.Add(new Point(70, 0)); p.Points.Add(new Point(90, 100)); p.Points.Add(new Point(0, 80)); How i can draw an 'ellipse' that will fit…
obenjiro
  • 3,665
  • 7
  • 44
  • 82
22
votes
3 answers

DateTime Convert from int to Month Name in C#, Silverlight

I am trying to print out the name of the month not the integer value of each month. (for example if the date is 2/2/2002, I would like the "month" to read out "February" instead of "2." I am pulling in the system.DateTime.now to get the current…
AmbiguousX
  • 1,704
  • 4
  • 24
  • 39
22
votes
2 answers

Silverlight 4 Equivalent to WPF "x:static"

I'm working on a project that is based on an old project someone started and didn't finish. I was trying to use as much of their code as I could, so in doing so I ran into some tweaking issues. Namely, when I put some of the old xaml in the new…
AmbiguousX
  • 1,704
  • 4
  • 24
  • 39
22
votes
1 answer

Difference between ItemsSource and DataContext as pertains to ListBox

I am not quite grokking the difference between ItemsSource and DataContext. Can someone explain it and back it up with examples? When would I use one or the other. I am reading the docs and it says that I can bind using DataContext, but I throw an…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
22
votes
3 answers

Non breaking space in XAML vs. code

This works fine, and correctly inserts non-breaking spaces into the string: But what I really need is to replace spaces with non-breaking spaces during data binding. So I wrote…
Henrik Söderlund
  • 4,286
  • 3
  • 26
  • 26
20
votes
3 answers

What is difference between " * " and "Auto" in Silverlight Grid Layout Definitions

trying to understand the following:
user203687
  • 6,875
  • 12
  • 53
  • 85
19
votes
5 answers

Best way to read through xml

HI I have a xml document like this: I want to use XmlReader to read through this xml and return a list of students as List. I…
Chinjoo
  • 2,697
  • 6
  • 28
  • 45
19
votes
3 answers

What is the use of Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} )?

I have seen this Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} ) format in some code .Is it used to do some work in Background?What are the general uses of it?
Vaysage
  • 1,326
  • 2
  • 15
  • 30
19
votes
3 answers

How to zoom in and zoom out Images in WP7?

I have made an application which displays Images .Now I want to implement zoom in and zoom out feature(by using two fingertip's) as in native windows phone photo viewer application.Any idea on how to proceed . Thanks in Advance.
Vaysage
  • 1,326
  • 2
  • 15
  • 30
19
votes
5 answers

Bind the text of RichTextBox from Xaml

How to Bind the text of RichTextArea from xaml
user281947
  • 275
  • 1
  • 2
  • 5
18
votes
1 answer

How can I make something like this? (Tiles inside the app) Windows phone

I'm sorry if the question title wasnt clear, but I'm trying to make something like this. I don't know if they are tiles or images inside a WrapControl: I was thinking of making such thing with a wrap panel and each one of those blocks as a…
Ateik
  • 2,458
  • 4
  • 39
  • 59
18
votes
1 answer

listbox items orientation to horizontal

How to make the listbox items orientation to horizontal in the default styling of a listbox. What i mean by default is the style which we get using blend.
Malcolm
  • 1,801
  • 3
  • 21
  • 48
18
votes
4 answers

What is the replacement for DataTrigger in Silverlight

This is my scenario. I have 2 Properties. Type and State. Type is an Enum with 3 values eg, ball, car, arrow. State is an int which would accept 3 state values eg., -1, 0, 1. Also, I have 9 images for each state values. Like, if I select type as…
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
17
votes
1 answer

Programmatically measure text string in pixels for Silverlight

In WPF there is the FormattedText in the System.Windows.Media namespace MSDN FormattedText that I can use like so: private static Size GetTextSize(string txt, string font, int size, bool isBold) { Typeface tf = new Typeface(new…
AlignedDev
  • 8,102
  • 9
  • 56
  • 91