The DataContext is on most of the UIElements, even on the Button too, so you can assign your class that houses the boolean property to it. But typicaly practice is higher up in the chain, the Window, the UserControl, whatever you prefer.
On Fri, Oct 29, 2010 at 10:31 AM, Greg Keogh <[email protected]> wrote: > I think this would do it - <Button IsEnabled={Binding > WhateverBooleanProperty}”/> as long as the DataContext is set on the Button > or any of its descendants. > > > > But what is the DataContext? The parent Window? I have to set the Source or > RelativeSource to something, the Window with the bool property? What’s the > syntax for that? > > > > Damn binding syntax. > > > > Greg > > _______________________________________________ > ozwpf mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf > >
_______________________________________________ ozwpf mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
