Click here to Skip to main content
15,914,452 members
Home / Discussions / WPF
   

WPF

 
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 
GeneralRe: ListBox SelectedItems binding Pin
Gideon Engelberth5-Feb-09 3:02
Gideon Engelberth5-Feb-09 3:02 
QuestionAccessing silverlight application throw outlook addin Pin
AR Reddy3-Feb-09 22:31
AR Reddy3-Feb-09 22:31 
QuestionRe: Accessing silverlight application throw outlook addin Pin
Mark Salsbery4-Feb-09 6:01
Mark Salsbery4-Feb-09 6:01 
QuestionTemplates for calendar control Pin
priyagee3-Feb-09 18:17
priyagee3-Feb-09 18:17 
AnswerRe: Templates for calendar control Pin
Mark Salsbery3-Feb-09 19:18
Mark Salsbery3-Feb-09 19:18 

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.