WCF Services and Silverlight
After looking at WPF the other week I thought being a web developer it would be beneficial to look at Silverlight. One of the first things I was interested to try was to access the server’s file...
View ArticleWrapped Listbox items in Silverlight and WPF
I wanted to display a list of image thumbnails similar to how Windows Explorer does it so they are displayed horizontally and wrap onto the next line. The ListBox allows you to choose a template for...
View ArticleSet Silverlight Image Source from byte array
I’ve been playing around with Silverlight and WCF services and I came across the need to set the Source of an Image control in Silverlight from a byte array. I have a service method which returns an...
View ArticlePassing a byte array to a WCF method from Silverlight – The remote server...
My Silverlight application calls a method to get an image from the server as a byte array. When adding my Service Reference the ServiceReferences.ClientConfig automatically generated the binding’s...
View ArticleAlert, confirm and input message boxes in Silverlight
To use alert, confirm and input message boxes in Silverlight you need to import the following namespace. You can then show an alert box by doing… Or a confirm dialog by doing… Or an input prompt by doing…
View ArticleSetting the SelectedItem in a Silverlight TreeView
I wanted to select a specific item in my Silverlight TreeView programatically. Looking at the TreeView.SelectedItem property the setter is not public so it cannot be done this way. If you are simply...
View ArticleSimple double click in Silverlight
I needed to pick up on a double click on an image in Silverlight but there is no event to handle this. It can be done quite easily using a DispatchTimer. I am doing this for an image but you should be...
View ArticleResize image with Silverlight and FJCore before uploading to server
I have a Silverlight application which allows the user to select images from their local PC which are then uploaded to a server via a WCF Service. It is easy enough to resize the image once it gets to...
View ArticleLinq to SQL with WCF Services
I was interested to see how I could use Linq to SQL with WCF Services to load and save data using a Silverlight project. In this post I will expand upon the database I created in my Linq to SQL...
View Article