DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Ian Griffiths's picture

Unregistered

Feeds

aliases

  • Ian Griffiths

Ian Griffiths

1 year ago

in Alt.NET Podcast Episode 2: Alt.NET and Microsoft on Alt.NET Podcast
I'm genuinely perplexed as to where everyone in this podcast got the idea that WPF is yet another example of the 'forms over data' model.

Heck, one of the most frequently vocalised complaints about WPF is that it's missing all of that cruft. (Which, incidentally, is one of the reasons I'm a big fan of WPF. It moves decisively away from that constraining mindset.)

I guess it would be easy to be misled by the fact that one of the most important aspects of WPF is its data binding system - any non-trivial WPF application makes pretty heavy use of that system. And if you'd never actually taken a look at it, I suppose you could, in ignorance, draw a plausible-sounding conclusion that it's just more of the same.

But data binding in WPF has absolutely no idea what a relational database is. There is no assumption that you necessarily even have a database - it just doesn't figure in the API.

Data binding in WPF is all about the objects. If you want to use WPF to build a form over your data, you've got to get that data into some objects first!

(And yes, since WPF will happily talk to any old object, that means it's possible to bind to a dataset. So if you absolutely want to keep a relational model right up close to your UI, WPF won't stop you. But equally it does nothing to encourage it - the only reason it's able to talk to dataset is because dataset's an object too, and WPF will bind to any old object model.)
1 reply
Mike Moore's picture
Mike Moore Hey Ian, thanks for the comment. I've listened to this episode multiple times while editing it, and I just listened to it again, and I'm not sure where the WPF discussion is that you are referencing. I'm not disagreeing with what you are saying about WPF, and I don't know what gave you the idea the "everyone in this podcast" does disagree with you.

That said, I have seen sample applications that sure do look like forms over data. So it certainly seems possible to build them in WPF, whether they are using datasets or objects.

2 years ago

in BindableRun on fortes.com
So how come it was cut, given it's quite straightforward? I've ended up having writing this thing (well, something very like it) a couple of times now on real projects, and it's always perplexed me that it didn't work like this out of the box.

Given that so many of the properties are DPs on most elements, it seems almost perverse that an exception was made in this case.
Returning? Login