Pixata Custom Controls
For Lightswitch

Recent Posts

Popular tags (# posts in brackets)

Anonymous types (3) ASP.NET (5) C# (3) C# tricks and tips (2) Computers (6) Design patterns (3) DomainDataSource (3) Dynamic data (4) Entity framework (3) Entity model framework (5) F# (3) LightSwitch (12) Linq (6) Microsoft (2) MVP (2) MVVM (2) Project Euler (2) RIA services (5) Silverlight (2) SQL Server (4) Unit testing (4) Visual Studio (7) WCF (3) WPF (3)

Gratuitous link to StackExchange




The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Actually, as I'm self-employed, I guess that means that any views I expressed here aren't my own. That's confusing!


Theme modified from one by Tom Watts
C#/F# code styling by Manoli (for posts pre-2016) and Google code prettify (for post from Jan 2016 and beyond)

My rambling thoughts on exploring the .NET framework and related technologies

Please note that this blog has ben retired. Most of the material has been migrated to my new blog at www.pixata.co.uk. Please update your bookmarks to point to the new blog.

The Labelled Group control Labelled Group

One of the great things about Lightswitch is the way it saves so much effort when designing a screen. However, that ease comes with a small price, and that is that you don't have as much control over the layout as you sometimes want. For example, if you have FirstName and Surname fields in your data, or a postcode that is split into two parts, and you want to put the two textboxes for these on one line, you can't. It's (almost) impossible to do this in Lightswitch.

The Labelled Group control makes it really easy...

The Labelled Group control in action

To use it, just add a group to your screen, and change the type to Pixata Labelled Group control. Then add a Columns Layout to the group, and finally add the controls you want to the Columns Layout...

The Labelled Group control in the Lightswitch screen designer

You will need to change the display name of the Labelled Group control to whatever you want to appear on the screen, and ensure that the Label Position is not Collapsed or None, and you will also need to the change the Label Position of the child controls to Collapsed.