silverlight

Is Silverlight more lucrative than ASP.NET?

Lately I've seen an lot of Silverlight jobs being advertised, with very high rates. Is this just temporary because Silverlight developers are in scarce supply at the moment? Or is there something about Silverlight development that makes it better paid than normal .NET or web development? Or do you think Silverlight will, in the long-te...

Silverlight pages binding to dataset(design question)

Hi everyone, I have a legacy dot net application (now migrated to .net 2.0). We need to convert this application to silverlight. Problem here is the datalayer. All the methods from the datalayer return datasets. The entire web application is using datasets for databinding. Now the questions are: Can I use the same datasets for silv...

Silverlight 3 - TreeView not getting focus

I've got a TreeView with a Hierarchical Data Template bound to an observable collection. When the collection is done loading, I run some code that selects a specific TreeViewItem and should then bring focus to the TreeView. The idea is that the user should be able to use the arrow keys to scroll through entries in the TreeView. The T...

Masterpage with Silverlight (C#) and Legacy ASP.NET (VB.NET) code

I'm working to include Silverlight functionality in a legacy web application based in VB.NET. With the change we are also switching from VB to C# (all new development is C#, so I need a C# answer). I'd like to use some form of master page where the content area can house either a silverlight control or a legacy module/page. The options...

Notify when all Rows are Loaded in a Silverlight DataGrid

I need to do some post-processing on a silverlight datagrid once all the rows are. I don't see any events that fire once that's done; what am I missing? Code samples or links are greatly appreciated. ...

Help understanding relationship of Resources/Styles/XAML files in Silverlight

I'm new to Silverlight and I wanted to accomplish a relatively simple task:    Create a "panel" control that would display a heading and some child content. I was able to get this work to a degree, but the placement of the XAML really confuses me. On my page I use my control. This results in my panel being shown with a button in the ch...

How to set up Header/Lines in WPF/Silverlight

Hi, Do you have any best practices for setting up Header/Lines forms (Also known as Header/Details) in WPF or Silverlight? Preferably using the Mode-View-ViewModel design Pattern to fit in with the rest of my application. An example would be if I had a grid that displayed all SalesOrders in the database, and the underneath that a grid ...

Silverlight databinding internal workings

Does anyone know how the databinding system works in silverlight technically, I have seen alot of the tuts on databinding and that items must be bound to a Dependancy Object ( and dependants ) using dependancy properties but where are the properties actually managed? what classes should I look at in reflector to understand the internals?...

How do I capture keystrokes in a Silverlight application?

I am trying to capture any keystroke that happens inside my Silverlight 2 application. There are not any input fields, I'm writing a game, and need to know which of the arrow keys are being pressed. My best guesses at how to capture these through an event handler are unsuccessful. Any recommendations? ...

From http to Https Service Call

hi, is there a way for some one to sneak in the to see data if my service is over http and the caller in my case is hosted on http (i.e. service is on secure ssl host while caller is on simple http). is that call secure or not? ...

Why does DataGrid call Linq query when scrolling?

I am just getting started with Linq, WPF and Silverlight. I am trying to display data which originates from a XML document in a DataGrid. I use a Linq query to select the objects I want and link the result to the DataGrid. XDocument doc = GedView.GedcomConverter.ConvertToXml(new StreamReader(e.Result)); var query = from person in doc.D...

Ironpython, Silverlight, ASP.NET MVC for production site

I am looking to build a new website which will require a sql server backend and silverlight front end. I would also like to take advantage of the MVC framework. I currently code in C#, but am looking to learn a new type of language on this project. I've been reading up on F#, IronRuby and IronPython. IronPython seems to catch my eye ...

How to ensure the right DateTime is used?

I have a Silverlight client that talks to some ASP.NET web services, which then modify a database. The client has data that can be modified and sent via the web services to the database. This data is organised by date. Obviously, the client can reside in a different timezone to the ASP.NET server, so, how do I ensure that the DateTime i...

WIA through web browser - ASP.NET

I am wondering what would be the best/preferred way to write a scanning app that lives in a web browser. The basic idea is I want to use a web page from where I can click a button which will scan a document on the client and upload that document to server. The first thought that came to mind is write a native (C++?) browser plug-in. Howe...

Is there a way to get a Silverlight app and a Flash app to communicate?

The title basically says it all. I'm looking for any way to get a flash app to communicate with a silverlight app, and vice versa. Are there any drawbacks to communication between the two apps? What are (or not) you able to communicate? ...

Silverlight Unit Testing (databinding, MVVM)

Hi all, How would you suggest I write a unit test to check that a UI object is bound to a particular named property in my ViewModel? Thanks, Mark ...

Hide a field in silverlight data form with data annotations

Which DataAnnotation attribute can I use to instruct the silverlight data form not to show that field? ...

Determine location of a UIElement on a Canvas

I have spent 20 minutes trying to find an example in C# of how to draw a line between two rectangles, and I can't find anything. I don't know if I just don't understand the paradigm of drawing 2D shapes in Silverlight, or if I'm just looking in the wrong place. I have set up the rectangles so I can drag them around, and now I want to...

Master Page containing silverlight control

I’ve created a Web Site with Visual Studio 2008 3.0 framework containing a Master Page. Is it possible to use Silverlight in a content area? ...

Silverlight UserControl and MVVM

I have a very similar issue as described in this post. I have a UserControl to encapsulate an address. This contains a number of basic controls, mostly textboxes. I then have backing dependecy properties in the code-behind for each property... #region Line1 /// <summary> /// Gets or sets the Line1. /// </summary> pub...