Click here to Skip to main content
15,896,421 members
Home / Discussions / C#
   

C#

 
JokeRe: Design pattern Pin
Mycroft Holmes16-Dec-13 20:54
professionalMycroft Holmes16-Dec-13 20:54 
AnswerRe: Design pattern Pin
Marco Bertschi17-Dec-13 0:09
protectorMarco Bertschi17-Dec-13 0:09 
AnswerRe: Design pattern Pin
BobJanova17-Dec-13 1:35
BobJanova17-Dec-13 1:35 
AnswerRe: Design pattern Pin
PIEBALDconsult17-Dec-13 3:18
mvePIEBALDconsult17-Dec-13 3:18 
AnswerRe: Design pattern Pin
Abhinav S17-Dec-13 6:25
Abhinav S17-Dec-13 6:25 
QuestionMulticast delegate vs binding Pin
Jörgen Andersson16-Dec-13 5:01
professionalJörgen Andersson16-Dec-13 5:01 
AnswerRe: Multicast delegate vs binding Pin
Abhinav S16-Dec-13 16:06
Abhinav S16-Dec-13 16:06 
AnswerRe: Multicast delegate vs binding Pin
BobJanova17-Dec-13 1:56
BobJanova17-Dec-13 1:56 
They are two distinct ways of communicating between entities, although you can implement data binding manually (for example where it isn't provided by the framework) using delegates and INotifyPropertyChanged fairly easily.

Data binding is typically used for a data view, generally a UI. Its purpose is to ensure that the data in the model matches what's being shown in the view, to put it in MVC/MVVM terms. No logic should happen in a data binder, although format conversions are acceptable (in WPF you can provide this as a binding argument, in WinForms you have to create a view model that's tightly bound to the view and put the conversion in there – obligatory self promotion).

Delegates are a general method to trigger code off another object's event. I'm assuming that in this context you're talking about handling change notifications on one object and updating another object as a result. This is quite similar to data binding, but the difference is that while data binding typically creates a 'vertical' binding (i.e. the view layer and model or view-model layer classes of the same concept), notifications between data objects is a 'horizontal' binding (i.e. classes in the same layer but relating to different concepts). You'd typically use delegates for this, with the handlers in a central controller class, because there is generally calculation or business logic required beyond simply assigning properties, as well as because data binding isn't typically available in such a scenario.
GeneralRe: Multicast delegate vs binding Pin
Jörgen Andersson17-Dec-13 3:45
professionalJörgen Andersson17-Dec-13 3:45 
GeneralRe: Multicast delegate vs binding Pin
BobJanova17-Dec-13 6:00
BobJanova17-Dec-13 6:00 
QuestionHave you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 4:03
dudz artiaga16-Dec-13 4:03 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani16-Dec-13 4:18
professionalRavi Bhavnani16-Dec-13 4:18 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
BillWoodruff16-Dec-13 4:28
professionalBillWoodruff16-Dec-13 4:28 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani16-Dec-13 4:39
professionalRavi Bhavnani16-Dec-13 4:39 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 4:43
dudz artiaga16-Dec-13 4:43 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Dave Kreskowiak16-Dec-13 6:04
mveDave Kreskowiak16-Dec-13 6:04 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 15:04
dudz artiaga16-Dec-13 15:04 
QuestionRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani16-Dec-13 9:18
professionalRavi Bhavnani16-Dec-13 9:18 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 15:06
dudz artiaga16-Dec-13 15:06 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga18-Dec-13 3:19
dudz artiaga18-Dec-13 3:19 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani18-Dec-13 3:59
professionalRavi Bhavnani18-Dec-13 3:59 
QuestionDownload Files from FTP using Filers Pin
Sandeepdshenoy16-Dec-13 1:53
Sandeepdshenoy16-Dec-13 1:53 
AnswerRe: Download Files from FTP using Filers Pin
Ravi Bhavnani16-Dec-13 2:47
professionalRavi Bhavnani16-Dec-13 2:47 
AnswerRe: Download Files from FTP using Filers Pin
Sandeepdshenoy16-Dec-13 20:19
Sandeepdshenoy16-Dec-13 20:19 
QuestionHow to access remote file directories without sharing. Pin
Arun kumar Gautam16-Dec-13 0:59
Arun kumar Gautam16-Dec-13 0:59 

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.