Let's say I have a
TextBox in my View (in a Passive-View approach). Should it expose the
TextBox object itself to the Presenter, or should it expose only the
Text property of this object? Furthermore, what about a case when the presenter needs not only the
Text property but also some other properties?
For me, it seems like both approaches have pros and cons. If we expose only specific
TextBox properties, we give the Presenter control over the precise properties we want it to control. On the other hand, that is a lot of code if we have lots of
TextBox properties we want to expose.
If we expose the control itself, we are saving a lot of code, but we do give the presenter the power to change properties we did not intend it to change.
What is the common way to approach this issue?