WPF version of SampleApplication

Jun 22, 2011 at 7:05 PM

I now have a WPF 2-tier version of SampleApplication working.

Changes (I think I've remembered everything)

1. IB.Application.Framework.Core.Desktop, Composition ObjectManager
No ExportFactory<T> in WPF.
I have added Glenn Block's WPF addition, along with the fix reported by Jean-Philippe Leconte, at:
At least I get a compile - can't say whether it's working!!
MarcelGood - would you be willing to add this here. Don't know how - perhaps youll need two projects with linked *.cs

2. Caliburn.Micro.Extensions.Desktop
UserControl becomes Window, so I can set size
Frame becomes ContentControl
I've also enhanced the view with a GridSplitter and a ScrollViewer

3. SampleModel.Desktop
Added in to the project some missing Classes.
Added Employee to the Model

4. SampleApplication becomes SampleApplicationWPF
Implemented EmployeeListView identically from my enhanced CustomerListView
DataForm becomes DetailsView from http://wpfdetailsview.codeplex.com
Enhanced the layout with GridSplitter and ScrollViewer
Implemented Save and Edit buttons the CaliburnMicro way

I'm biased, but I think it's a nice example of CM and DevForce.
Thanks for your work with this Framework, I'm almost sold on it for my next project in preference to nHydrate and CSLA

I'd like to get you a Zip of my solution, in the hope you'd merge it back in to your SVN here.

Many thanks



Jun 22, 2011 at 7:27 PM

Thanks. I would love to see your sample.

Yes, I know about Glenn Block's stuff, but I didn't wanna use it because it's not official. That's why I have my own workaround in there using my CompositionHelper. Are you saying you couldn't build as-is?

Jun 22, 2011 at 8:12 PM

How would I get it to you? I assume you have DevForce email address? To avoid publishing it her for spammer, you could sent me it from here.
Alternatively, you could turn on forking, like CM has, and I could upload it.

Neither SampleApplication nor Helloworld compiled or worked for WPF as is from the SVN.
Helloworld is being a bit of a p*g, but I'll crack it sometime.

By the way. Why don't you put up all the DevForce examples (like they were all together in the CookBook [I never saw]) here on Codeplex, so they can be version controlled.
I'm already fed up with everyone having yet another Model to point to my SQLEXPRESS!!


Jun 22, 2011 at 9:59 PM

You can upload it as a patch from the source code tab. Forking is only available on projects that use Mercurial.

Yes, both SampleApplication and HelloWorld are Silverlight applications. They both have to be rewritten for WPF, which sounds like you did for the SampleApplication.

Putting the DevForce examples on CodePlex is a good idea. I pass it on.