Click here to Skip to main content
15,886,110 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Don't bump your post. Pin
Pete O'Hanlon5-Feb-09 3:07
mvePete O'Hanlon5-Feb-09 3:07 
QuestionSending Email Pin
Ray Cassick4-Feb-09 15:29
Ray Cassick4-Feb-09 15:29 
AnswerRe: Sending Email Pin
Michael Sync8-Feb-09 6:36
Michael Sync8-Feb-09 6:36 
GeneralRe: Sending Email Pin
Ray Cassick8-Feb-09 13:08
Ray Cassick8-Feb-09 13:08 
GeneralRe: Sending Email Pin
Braulio Dez13-Mar-09 6:27
Braulio Dez13-Mar-09 6:27 
AnswerRe: Sending Email Pin
Kevin McFarlane8-Feb-09 7:24
Kevin McFarlane8-Feb-09 7:24 
QuestionBinding To One Object Or To A Property Pin
BlitzPackage4-Feb-09 15:14
BlitzPackage4-Feb-09 15:14 
AnswerRe: Binding To One Object Or To A Property Pin
Pete O'Hanlon4-Feb-09 23:32
mvePete O'Hanlon4-Feb-09 23:32 
It's easy to bind to a single item (and to ensure two way binding). All you need to do to the object is ensure that it uses INotifyPropertyChanged to raise notifications when properties change. If you look at this[^] blog entry, you can see how I bind to a simple class - it really is very straightforward.

BlitzPackage wrote:
Also, is it possible to bind to a property of an object?


Yes. In your case, LittleControl "belongs" to BigControl, so LittleControl is able to walk all the way back up the logical tree looking for the data context, and use this to bind to the object. This means that it can use {Binding Path=Customer.Benefits}.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: Binding To One Object Or To A Property Pin
BlitzPackage5-Feb-09 2:12
BlitzPackage5-Feb-09 2:12 
GeneralRe: Binding To One Object Or To A Property Pin
Pete O'Hanlon5-Feb-09 2:54
mvePete O'Hanlon5-Feb-09 2:54 
GeneralRe: Binding To One Object Or To A Property Pin
BlitzPackage5-Feb-09 7:08
BlitzPackage5-Feb-09 7:08 
GeneralRe: Binding To One Object Or To A Property Pin
Pete O'Hanlon5-Feb-09 10:40
mvePete O'Hanlon5-Feb-09 10:40 
GeneralRe: Binding To One Object Or To A Property Pin
BlitzPackage6-Feb-09 9:42
BlitzPackage6-Feb-09 9:42 
GeneralRe: Binding To One Object Or To A Property Pin
Pete O'Hanlon6-Feb-09 10:53
mvePete O'Hanlon6-Feb-09 10:53 
QuestionMessage Removed Pin
4-Feb-09 10:34
professionalN_tro_P4-Feb-09 10:34 
AnswerMessage Removed Pin
4-Feb-09 10:55
professionalN_tro_P4-Feb-09 10:55 
GeneralRe: DataTemplate list Horizontally Pin
Gideon Engelberth4-Feb-09 12:04
Gideon Engelberth4-Feb-09 12:04 
GeneralMessage Removed Pin
5-Feb-09 4:36
professionalN_tro_P5-Feb-09 4:36 
GeneralRe: DataTemplate list Horizontally Pin
Gideon Engelberth5-Feb-09 6:30
Gideon Engelberth5-Feb-09 6:30 
GeneralMessage Removed Pin
5-Feb-09 8:29
professionalN_tro_P5-Feb-09 8:29 
GeneralMessage Removed Pin
6-Feb-09 3:02
professionalN_tro_P6-Feb-09 3:02 
GeneralMessage Removed Pin
6-Feb-09 6:02
professionalN_tro_P6-Feb-09 6:02 
GeneralRe: DataTemplate list Horizontally Pin
Gideon Engelberth6-Feb-09 7:13
Gideon Engelberth6-Feb-09 7:13 
QuestionMessage Removed Pin
4-Feb-09 5:55
professionalN_tro_P4-Feb-09 5:55 
AnswerMessage Removed Pin
4-Feb-09 7:57
professionalN_tro_P4-Feb-09 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.