Just to prove to Stephen that I have not been replaced by a Borg (who programs and upgrades those guys anyway?)
I was a bit sceptical at first about the WPF Command routing system, but now I'm impressed by how effective and easy it is to use. Just setting the Command property of menus and buttons to a RoutedUICommand will let that command event bubble up as far as you want (to the app window in my case). There are lots of pre-supplied commands like ApplicatonCommands.XXX etc and it's trivial to create another set of your own commands. Calling CommandBindings.Add( ) adds the pairs of handlers for each command in a way that reminds me of the old MFC technique. It's nice that the pre-supplied command text is localised and can be used as the control text. So overall, the bubbling of commands really cuts down on the amount of wire-up code needed and you can put all the command handling code in convenient place(s) in your choice. Greg
_______________________________________________ ozwpf mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
