RIA Services for Silverlight

I downloaded the CTP of RIA Services for Silverlight along with accompanying documentation this morning.  I have read the documentation and wanted to share a few thoughts on this product. The product looks very promising to me.  Here is an overview of the key features.  You can configure RIA Services to use ether Linq to …

Continue reading ‘RIA Services for Silverlight’ »

Silverlight 3.0

I read a few notes from Mix 09 about Silverlight 3.0.  It has a lot of great new features.  Read for yourself if you would like.  Here is a link to a free short eBook that covers parts of new functionality. http://download.microsoft.com/download/3/0/5/3055A230-B06F-4A58-AC93-B7CFD2184A70/FirstLookSL3Moroney.pdf

Working with resources in Silverlight

Localizing a Silverlight application is a pretty trivial task if you use resources.  Once you create a resource file you are working with, you can use the code-behind class in XAML and bind to properties from that class that contain localized strings.  First, import the namespace that is used for resx file, typically ApplicationResources xmlns:Localized="clr-namespace:MyApplication.Resources" …

Continue reading ‘Working with resources in Silverlight’ »

Atlanta Code Camp 2009

This year’s code camp is upon us.  I have volunteered to speak at this code camp.  My topic is “Building Silverlight Business Applications using CSLA.NET for Silverlight”.  Please check out the Code Camp web site for more details.  As always, I am excited to speak in front of my fellow coders. Download presentation and sample …

Continue reading ‘Atlanta Code Camp 2009’ »

Editing Silverlight’s DataGrid’s templates in Blend

Blend has a small issue when it comes to editing of column templates for DataGrid.  If you define the template in-line as part of column definition, there is no way to edit that in Blend.  There is an easy workaround however.  You need to define DataTemplate as part of user control’s resources.  Once you open …

Continue reading ‘Editing Silverlight’s DataGrid’s templates in Blend’ »

Deploying Silverlight applications that use CSLA for Silverlight

Here are a few steps that need to be taken in the process Update XAP file for Silverlight application in order to set deployment time IP address/name Make sure to install .NET framework version 3.5 SP1 on the application server that hosts WCF service Check and create if missing MIME types for virtual directory that …

Continue reading ‘Deploying Silverlight applications that use CSLA for Silverlight’ »

Binding to Silverlight WrapPanel

I had recently investigated the use of WrapPanel for Silverlight.  You can download it along with other controls as part of Silverlight Toolkit.  Example on the web site does not demonstrate the binding to it, so here is how you would do it. You cannot bind to WrapPanel directly because it does not have property …

Continue reading ‘Binding to Silverlight WrapPanel’ »

Showing images from database in in Silverlight

You can show images in Silverlight using Image control.  You can furthermore bind Source property of the image to byte[] type property of a business object.  You would think this is sufficient, but it is not.  You will need a converter to convert byte array into image source. Here is the class for converter public …

Continue reading ‘Showing images from database in in Silverlight’ »

Full screen toggling in Silverlight

If you would like to push browser in and out of full screen mode from Silverlight application, you can do this very easily. To go full screen: Application.Current.Host.Content.IsFullScreen = true To go to normal display: Application.Current.Host.Content.IsFullScreen = false Since Application.Current.Host.Content.IsFullScreen is a property, you can also test for current mode.