silverlight-2.0

Silverlight Tools for Visual Studio 2008 - Placing a Control Issue

What is the issue with the Silverlight Tools for VS2008? I can't seem to place controls on the designer surface. This didn't work for me on two different machines. Do you have to tweak the XAML to be able to place the first control? Cursor stays a compass-like-cross when over the surface. Are you supposed to drag-n-drop controls or draw ...

How do I Reference an Embedded Resource in Silverlight 2

I have the following simple button with an image as the template. The problem is that I want to change the image to a resource, instead of a content reference. I want to do this so I can share the DLL as a re-usable library, and it doesn't work well when I do that. How do I tell the Image object to use an embedded resource in a decl...

Silverlight 2 Error Code: 4004

Hey guys/gals. I have a silverlight 2 app that has an ObservableCollection of a class from a separate assem/lib. When I set my ListBox.ItemsSource on that collection, and run it, I get the error code: 4004 "System.ArgumentException: Value does not fall within the expected range." Here is part of the code: public partial class Page : Use...

Is Silverlight 2.0 a viable game development platform?

I've coded some smaller projects using Silverlight 2.0, which is fairly impressive. Does Silverlight 2.0 have what it takes to be a game development platform for the web? (Are the framerates high enough, will there be 3D engines developed, and many more questions) Yes or no, with detail if desired, and why. ...

Thoughts about using Silverlight In Desktop Apps?

To summarize, as we all know, a) Silverlight is expected to be hosted by a browser, and runs in an isolated sandbox so that there won’t be any security issues Silverlight don’t have direct access to the file system, other than the isolated storage area There is no direct way to open common dialog boxes like File Save in Silve...

Can you build an entire application in Silverlight?

Is it possible to build a good medium to full sized application using just silverlight as a host? A few things that would be needed: - dynamic pages (one silverlight "screen" can switch between screens, like a normal app. - similar to a java applet which launches from the browser I see that Telerik sells RadControls for WPF...but this ...

What all do I have to have to start learning Silverlight 2 for free?

Hi, What do I need to install to begin learning Silverlight 2? I know how to build web applications and use c#, I just have very little experience with Silverlight. I used it a little when it first came out and decided to wait until more .net integration took place. In the past I have used Visual Studio 2005 Pro. for my applications, b...

Will Expression Blend relieve me from having to learn xaml?

I don't mind learning xaml and I'm sure I need to be familiar somewhat, but when I was first trying out Silverlight 1 with javascript it looked like a tremendous amount of overhead. I decided to wait until tools matured and asp.net was added. Well, asp.net has been added with Silverlight 2.0, and now I want to look at using it. But, x...

Providing a mechanism for end users to install Silverlight 2.0 without going to the Microsoft site

Our web-based application is installed at end-customers. Typically these customers do not have access to the internet. Part of the next version of our application is Silverlight 2.0 based. When a browser without the Silverlight 2.0 plugin tries to access our the Silverlight portion of our app, the customer gets the standard "Install Mic...

Intermediate ado.net dataservice in Silverlight

We're using Silverlight 2 with ADO.NET dataservices and to test the silverlight page we used a service in the same domain which works fine. We then decided to try use a proxy or intermediate service (sitting in the same domain as the Silverlight app) which basically just surfaces a service sitting in another domain (by using the class ge...

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 collection of answers. As shown below: <ListBox DataContext="{Binding}" x:Name="AnswerList...

Silverlight WebPart in Sharepoint

Hi dudes, I am new to this Silverlight 2.0 and i actually trying to deploy the silverlight as webpart in sharepoint 2007. Installations i have done 1. VS 2008 with SP1 2. Silverlight 2.0 SDK and exe 3. Silverlight Tools for VS 2008 4. MOSS 2007 I have created the sample silverlight application and got the xap file from the bin directo...

UserControl that has a generic class in its inheritance tree

I'm trying to create a UserControl that inherits from a generic class. It does not directly inherit from a generic class, but through an intermediate class that does not use generics. This compiles and works at runtime, but I get an error at design time. Here's my generic parent class: Public Class GenericParent(Of T) Inherits Us...

Deriving from UserControl in Silverlight

In Silverlight 2 I have the following class declaration for a control: public partial class ClassX : UserControl I wish to replace UserControl with ClassXBase which derives from UserControl but I'm getting the reasonable error "Partial declarations of 'ClassX' must not specify different base classes" However, I'm unable to find the o...

Authenticated Web Services with Silverlight

What method would you use secure a group of web service methods that are callable from a Windows Server and a Silverlight 2 front end? I don't really want to have to pass a username and password with each and every method call, but I'm not entirely sure how to approach it and my google searching hasn't really been providing me with any ...

What type of service should I use for Silverlight 2 data?

There is ASMX, WCF, REST, and ADO.NET Data Services... I've used WCF and ASMX succesfully with Silverlight 2, but what about the others? What are the pros and cons of using each type of service with Silverlight 2? ...

Can I use Silverlight 2.0 with ASP.NET 2.0?

I am working on an in-house tool for interfacing to a database. My current prototyping is written in C# using ASP.NET 2.0 with the intent to optimise some client-side operations using javascript. However, I was hoping to leverage Silverlight to simplify the user interface development. Do I need to have the server upgraded to ASP.NET 3.5...

silverlight: showing/hiding user controls

My silverlight app takes the user through a sort of wizard-like process, so for each screen in the wizard I've created a seperate user control. Then in my main user control (applications RootVisual) I just show/hide each user control when needed. That means that every user control is instantiated at once, is it possible to only have o...

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? ...

Best design pattern for complex silverlight games

What patterns do you think are best for silverlight games? Some main areas of focus are game performance, maximum number of objects reasonably updated in real time, ease of development and testing. ...