ElegantCode

A software blog

8 Mar
2010

Silverlight DataGrid – Populate Dynamic Columns from a Child Collection

Lets face it, any one building LOB (line of business) applications know that their users love Microsoft Excel.  If the users had their way, they would do everything in Excel.  Due to this known fact, when building Silverlight LOB applications, there is often a need to flatten out an object for editing in a grid.  […]

Read More
7 Mar
2010

Text-To-Speech in Silverlight Using WCF

Back in February, I wrote a blog post showing you how to, using Silverlight 4 OOB (out of browser) with elevated trust, access system devices; including how to use the SAPI.SpVoice API through the new Silverlight 4 COM Interop feature to implement text to speech. The biggest problem to that approach is that it will […]

Read More
5 Mar
2010

Creating a Custom Silverlight Pre-Loader

I have been doing Silverlight development since it was released. One question I get asked a lot is how do to create a custom pre-loader for my application. What do I mean by pre-loader? Well, it can be called many things; it could be called a pre-loader, splash screen, or a loading screen. No matter […]

Read More
2 Mar
2010

JQuery Validator Cheat Sheet

Category:UncategorizedTag: :

I?m getting a session ready for Boise Code Camp 2010 on JQuery Validator. I thought it would be cool to hand out a cheat sheet ? but I couldn?t find one. So here is rev. 1 of my?Jquery Validator Cheat sheet.

Read More
1 Mar
2010

An Evolution of Test-Specification Styles – My Journey to MSpec

Over the last few years, the practice of Test-Driven Design and Behavior-Driven Design has increased in acceptance, even if its practice has not increased in equal proportion.  From my perspective, specification-based design is a natural way to develop software.  Each developer has a preferred framework, and a framework they loathe.  In the .NET world, there […]

Read More
26 Feb
2010

Behaviors with MSpec

In my previous posts, I showed the syntax for context/specifications using Machine.Specifications (or MSpec for short) and how to use an auto mocking container in conjunction with this excellent Behavior-Driven Development (BDD) framework. For this post, I want to show you one of the nice features of MSpec called behaviors. Suppose we have to create […]

Read More