Click here to Skip to main content
15,890,512 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon5-Sep-11 5:40
mvePete O'Hanlon5-Sep-11 5:40 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 10:01
SledgeHammer019-Sep-11 10:01 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 10:46
SledgeHammer019-Sep-11 10:46 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 11:14
SledgeHammer019-Sep-11 11:14 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 12:47
SledgeHammer019-Sep-11 12:47 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Alisaunder12-Sep-11 6:32
Alisaunder12-Sep-11 6:32 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer0112-Sep-11 6:44
SledgeHammer0112-Sep-11 6:44 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Member 103390713-Sep-11 22:47
Member 103390713-Sep-11 22:47 
Thank you all guys, only now did I get the time to read all posts. To summarize what I learned:

1) .NET ships with IEditableObject interface which I am advised to implement in such situations

2) the implementation may use reflection, expression trees (not sure I quite understand this), or can be manually typed out for a particular class

3) the implementation (in any case) does nothing other that store a copy of the data for possible rollback later

4) .NET framework itself provides no extra advantage of using IEditableObject (except data grid and maybe few other specific controls) - a typical window with textboxes and checkboxes for data is unaware of IEditableObject and I must manually call BeginEdit, CancelEdit etc.
Therefore - if I just make the copy but not as an implementation of IEditableObject, it'll work the same, but it is not advisable because it is not standard practice.

Let me please know if I understand this correctly.
H.
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon13-Sep-11 22:59
mvePete O'Hanlon13-Sep-11 22:59 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Member 103390714-Sep-11 2:05
Member 103390714-Sep-11 2:05 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon14-Sep-11 2:15
mvePete O'Hanlon14-Sep-11 2:15 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Mycroft Holmes13-Sep-11 23:27
professionalMycroft Holmes13-Sep-11 23:27 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon14-Sep-11 23:13
mvePete O'Hanlon14-Sep-11 23:13 
QuestionCall the client program Pin
luozi20114-Sep-11 14:55
luozi20114-Sep-11 14:55 
AnswerRe: Call the client program Pin
Pete O'Hanlon4-Sep-11 20:08
mvePete O'Hanlon4-Sep-11 20:08 
QuestionConverting an Bitmap to ImageSource problem Pin
Mike Hankey4-Sep-11 10:31
mveMike Hankey4-Sep-11 10:31 
AnswerRe: Converting an Bitmap to ImageSource problem Pin
RichardGrimmer5-Sep-11 5:25
RichardGrimmer5-Sep-11 5:25 
GeneralRe: Converting an Bitmap to ImageSource problem Pin
Pete O'Hanlon5-Sep-11 5:30
mvePete O'Hanlon5-Sep-11 5:30 
GeneralRe: Converting an Bitmap to ImageSource problem Pin
RichardGrimmer5-Sep-11 5:33
RichardGrimmer5-Sep-11 5:33 
GeneralRe: Converting an Bitmap to ImageSource problem Pin
Pete O'Hanlon5-Sep-11 5:37
mvePete O'Hanlon5-Sep-11 5:37 
GeneralRe: Converting an Bitmap to ImageSource problem Pin
Mike Hankey5-Sep-11 9:57
mveMike Hankey5-Sep-11 9:57 
AnswerRe: Converting an Bitmap to ImageSource problem Pin
Pete O'Hanlon5-Sep-11 5:37
mvePete O'Hanlon5-Sep-11 5:37 
GeneralRe: Converting an Bitmap to ImageSource problem [modified] Pin
Mike Hankey5-Sep-11 10:05
mveMike Hankey5-Sep-11 10:05 
GeneralRe: Converting an Bitmap to ImageSource problem Pin
Pete O'Hanlon5-Sep-11 20:16
mvePete O'Hanlon5-Sep-11 20:16 
QuestionWPF Pin
mumshad3-Sep-11 20:53
mumshad3-Sep-11 20:53 

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.