Old forum URL:

csmith1 posted on Wednesday, March 07, 2012

Great post on your blog about WinRT.

1.) Will we see a Using CSLA 4 with WinRT?

2.) Can you comment on new "greenfield" development using CSLA, WinRT, Silverlight....?

There seems to be opportunity for reduce the "bleed edge" risk by developing a flexible business logic base like CSLA. 

RockfordLhotka replied on Wednesday, March 07, 2012

I think it is very likely that there'll be a Using CSLA 4.5: WinRT book in the future, yes. Probably not until Win8 actually ships so things are stable, but yes.

I'm not entirely sure what you mean with "greenfield" in this context? You mean writing a new app that is designed from the start to work on both Desktop and WinRT (and thus also Win7)?

Once I have a WinRT (WRT) version of CSLA 4 working (more than it is now - I haven't tested the remote data portal yet anyway), we'll instantly be in a position where existing CSLA 4 business classes that are running on Silverlight (or WP7) will "just work" when recompiled for WRT.

And because those apps are almost certainly 3- or 4-tier apps, where the data layers are running on a server, none of that code will change either.

So thinking about the CSLA architectural model, the only layers impacted by WRT are the Interface and Interface Control layers. I rather suspect that some of the MVVM UI frameworks will solve the Interface Control layer mismatch, allowing you to use some or all of your viewmodel code between SL and WRT. That would mean only the actual XAML composing the Interface layer (view) will need to be changed.

From what I'm seeing so far in the beta, if you stick with standard XAML controls and do styling (as opposed to using lots of third party controls or things like a datagrid), your XAML will probably move from SL to WRT with very little effort. So porting the view may not be a big deal either.

This is especially true if this is a greenfield effort, so you can be careful about your XAML to minimize the differences. Probably including concepts like making your SL views follow the basic layout of a WRT view, and using the same navigation structure.

rxelizondo replied on Wednesday, March 07, 2012


Quick question (a little off topic here), do you know if Microsoft is planning to force all application (including business application) to be deployed from their app store?

I mean, assuming that the whole Windows 8 / WinRT is an awesome environment to work on and everyone loves it, I am not sure if business would be OK with the idea of being forced to go through the Microsoft App Store. Such limitation seems like a deal killer to me.

But maybe is not true that you have to go through the app store, I think I remember reading about it but perhaps it was just a rumor and I am wrong. I thought that is the way things are handled on Windows Phone but maybe I am wrong there too.

Sorry if this is a silly question, I have not kept up to date with a lot of the new Microsoft stuff!


JonnyBee replied on Wednesday, March 07, 2012

Microsoft is apparently planning to support private app store.

Read more here: 

csmith1 replied on Thursday, March 08, 2012


I am looking forward to your book. I am sure I will learn as much about WinRT as I will about CSLA from reading it.

Greenfield development is software developed to solve a new problem with no legacy code or little legacy code. A fresh clear landscape to build on. (a green field) 

Copyright (c) Marimer LLC