Setting up a WPF form using CSLA 4.1

Setting up a WPF form using CSLA 4.1

Old forum URL:

hector posted on Thursday, February 24, 2011

I'm working on a simple WPF form to manage a specific business object. I'm following the instructions in Chapter 19 - Windows Presentation Foundation UI in the C# 2000 book, to setup my form. I have not been able to get too far with what is in the book.

Is there an update to this chapter in the new ebooks?



hector replied on Thursday, February 24, 2011

I got a little further with this form. This form is being used to add a new Store object. The store object has 2 string properties: StoreId and Name.

This form has 2 textboxes and 2 buttons. One button is for canceling and the other is for adding the new Store to the database.

I finally got the PropertyStatus controls hooked up to the new Store object. I'm currently stuck with the Save button. I looked through the samples, but wasn't able to find anything that looks similar to what I'm doing with this save button.

RockfordLhotka replied on Thursday, February 24, 2011

This is a multi-part answer.

First, when I wrote the 2008 book Micorosft still though the data provider model was a pretty cool idea. That time has passed, and essentially everyone is using some variation of MVVM or maybe MVP these days. The data provider support in CSLA 4 is a hold-over from that earlier time and will eventually be phased out.

Second, the CSLA 4 MVVM video series is essentially the replacement/update for the WPF content from the 2008 book - covering how to build a WPF or Silverlight UI using MVVM with CSLA 4.

Third, the Using CSLA 4 ebook series will include a book (planned as book 5) that covers WPF/Silverlight development using CSLA 4 and MVVM (I'll use Bxf as the MVVM framework).

HectorSosaJr replied on Friday, February 25, 2011

Thanks Rocky!

This gives me a pretty good idea as to where to look for these sort of questions.


Copyright (c) Marimer LLC