Posted By: Rossj | Jun 21st, 2007 @ 2:12 PM
page 1 of 1
Comments: 8 | Views: 1878
WPF Data binding ROCKS!

This is all. (sorry am a bit excited that I got my menus hooked up to my  concrete Document sub-classes via an AppController with virtually NO CODE.... )
mVPstar
mVPstar
I'm white because I smelt an onion.
Party? [6]
jvervoorn
jvervoorn
Caption
Rossj wrote:
 I got my menus hooked up to my  concrete Document sub-classes via an AppController with virtually NO CODE.... )



I think it would be great if you gave more detail.
Sabot
Sabot
My name is Dave Oliver. I'm a Technical Architect.
I have to say I agree !!!

It is a piece of cake.

WPF is a great new developer tool!

... as for the details, well I would say just go and try it! Install .Net 3.0, open WPF project in VS 2005 find the datasource icon, point it at a database, xml-file, web service (Basic profile 1.1) and thats just the start of the fun! It doesn't take long at all to pick up, this is were the penny drops, it's not about replacing how you code, just makes it easier to think about how you code business processes and yes ofcourse workflow.

My only gripe about WPF is that it doesn't work with WCF ... but it will in .Net 3.5.

Glad to hear of your excitement.  As a developer, I have to agree that databinding is one of the nicer features of WPF...it is great to program to your data, and have the UI take care of itself.

A few links that focus on Data:
Data Binding Overview (MSDN)
WPF Hands on Labs (including one on databinding)

Enjoy!

By the way, WCF does work with WPF in .Net 3.0, however, when you want to run your WPF application as an XBAP (xaml browser application) that runs in the browser), it requires that all code can run in a partial-trust sandbox.  Much of WCF couldn't run under that environment in v3, however .Net 3.5 will have a WCF that can...

Thanks, Rob

Rob Relyea | Program Manager, WPF & Xaml Language Team
robrelyea.com | /blog | /wpf | /xaml

 

Jack Poison
Jack Poison
At what price, Freedom?

Rob,

Do you know off-hand if there are any demos / hands-on labs for changing the appearance of a scrollbar (or similar functionality)? I can change a button easily enough, but I'm kind of stuck on how to handle, say, a scroll bar where I want to modify what the arrows look like and such.

Any help would be appreciated.

 

eddwo
eddwo
Wheres my head at?
Rossj wrote:

I still have issues with WPF (like given Microsoft's opportunity to provide base functionality IN THE FRAMEWORK for things like Document models - Open/Save/Save As etc ) why it wasn't built in, in a similar fashion to the way NSDocument works in Cocoa which saves tons of time re-writing the same type of code each time I take a new job.  MVC in the box might have been nice.


Looks like the frameworks for that sort of thing will be in Acropolis 
Though that is still a long way off.
Yeah I love it. The fun part is that I don't have to care about the visual. I have a background thread adding visuals to the panel. But instead of creating the whole UI element myself and adding it to the panel, I just update the source of the databinding, which is extremely easy.

Like observableCollection.Add(YesNewObject);
So easy and intuitive.
page 1 of 1
Comments: 8 | Views: 1878
Microsoft Communities