Questions tagged [silverlight-2.0]

Microsoft Silverlight is an application framework for writing and running rich Internet applications, with features and purposes similar to those of Adobe Flash. Silverlight 2 included a version of the .NET Framework, implemented the same full Common Language Runtime (CLR) version as .NET Framework 3.0; so it can execute programs written in any .NET language.

Silverlight 2 includes a cross-platform, cross-browser version of the .NET Framework, and enables a rich .NET development platform that runs in the browser. Developers can write Silverlight applications using any .NET language (including VB, C#, JavaScript, IronPython and IronRuby).

See also:

319 questions
25
votes
6 answers

Silverlight Logging framework and/or best practices

Now that Silverlight 2 has finally shipped. I'm wondering if anyone has put together any logging frameworks for it, maybe something like enterprise library logging or log4net? I'm interesting in something that can perform tracing client side and…
Aaron Weiker
  • 2,523
  • 2
  • 21
  • 22
24
votes
4 answers

Access parent datacontext in listbox in Silverlight

In Silverlight 2 I'm using a usercontrol which inherits the datacontext of the page that it's embedded on. This datacontext contains question text, a question type and a collection of answers. In the user control is a listbox which is bound to the…
James_2195
  • 1,113
  • 1
  • 12
  • 17
24
votes
4 answers

How to get the Silverlight XAP copied to the clientbin on build

I am just getting started with Silverlight and have recently added a Silverlight project to an established solution. In this particular scenario my solution included an existing ASP.NET web site (not application) which Visual Studio kindly offered…
22
votes
3 answers

silverlight: How to set attached properties Programmatically

Suppose I have a grid with some row definitions, and a child control in that grid. How would I go about setting the Grid.Row property of the child control programatically?
Jeremy
  • 44,950
  • 68
  • 206
  • 332
19
votes
5 answers

Can Silverlight initiate Page Refreshes?

UPDATE: An alternative title for this could be: How do I call javascript from my silverlight 2.0 application. Here is a quick question for all you Silverlight gurus. I have a Silverlight app that displays a stopwatch countdown. The app is hosted in…
Scott Ferguson
  • 7,690
  • 7
  • 41
  • 64
18
votes
5 answers

How to convert DateTime from JSON to C#?

Possible Duplicate: How to convert UNIX timestamp to DateTime and vice versa? I've got the following class: [DataContractAttribute] public class TestClass { [DataMemberAttribute] public DateTime MyDateTime { get; set; } } Here's the JSON: {…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
18
votes
5 answers

Convert WPF Application to SilverLight

Is it possible to convert an existing WPF Application to SilverLight automatically/with minimal effort?
Salamander2007
  • 6,294
  • 8
  • 32
  • 26
17
votes
6 answers

Binding Silverlight UserControl custom properties to its' elements

I'm trying to make a simple crossword puzzle game in Silverlight 2.0. I'm working on a UserControl-ish component that represents a square in the puzzle. I'm having trouble with binding up my UserControl's properties with its' elements. I've finally…
Ronald Zarīts
  • 11,819
  • 8
  • 39
  • 42
17
votes
4 answers

How to correctly inherit from a usercontrol defined in XAML in Silverlight

If I have a usercontrol (in Silverlight) that I've written, that uses XAML to define it's appearance, how can I make a customised version of it? i.e. I have MyControl.xaml & MyControl.xaml.cs What do I need to do if I want a "SpecialisedControl"…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
16
votes
3 answers

How do you have Silverlight resize text content to fit?

I've got a user control (below), I'm binding the text to a datasource and instancing up a bunch of the usercontrols. I want the size of the text to be the largest possible that will still fit in the bounds of the control. In Windows programming, I…
Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
16
votes
6 answers

How do I create a Popup Dialog box in Silverlight?

I'd like to create a popup dialog box in silverlight in which i can manipulate controls, enter data, and return a value. I want it to be modal, so that when it is open, the page "Below" is inaccessible. I havent found an easy way to do this yet.…
midas06
  • 1,991
  • 2
  • 22
  • 43
14
votes
5 answers

Silverlight Error "Layout Cycle Detected Layout could not complete" when using custom control

I'm building a custom control in Silverlight by deriving from ContentControl and doing some special formatting to put a dropshadow behind the contents. I've nearly got it working but have recently ran into a bizarre error. It works fine if it…
Matthew Timbs
  • 435
  • 1
  • 4
  • 11
14
votes
4 answers

How can I setup a Right Click context menu in Silverlight?

I want to create a right click context menu for my textboxes to provide the typical copy/paste functionality. Any ideas on how to go about this?
Aaron Fischer
  • 20,853
  • 18
  • 75
  • 116
13
votes
8 answers

Silverlight image: load URL dynamically?

I'm tinkering with Silverlight 2.0. I have some images, which I currently have a static URL for the image source. Is there a way to dynamically load the image from a URL path for the site that is hosting the control? Alternatively, a configuration…
pearcewg
  • 9,545
  • 21
  • 79
  • 125
12
votes
8 answers

How can I use non-Silverlight assemblies in a Silverlight app?

I'm working an project (pure hobby, "Sharping my skills") which has one unified back-end and multiple front-ends (ASP.NET MVC 1.0/JQuery and Silverlight 2). When I try to add reference to my business layer assembly in the Silverlight 2 project…
Norbert B.
  • 5,650
  • 3
  • 25
  • 30
1
2 3
21 22