Hopefully I am stating that right. I have a WinForm(3.5) app that has 1 Form that is broke into two regions. 1 is the Navigation and the other, a Panel, is the Content. You select what you want in the Navigation Portion, i.e. Demographics, and then it embeds a UserControl containing all the Demographics controls in the Panel.
What I am asking is if each User Control should have a Property
for each Control
on it. Example: ucDemographics has a textbox, named txtCity
. Should there be a Property
to store the value
of txtCity
and allow my Form and other User Controls to access it?
Is that the generally accepted 'Best Practice'?
If not, what is?