Winform equivalent to Android's fragments? -


you know, in ccleaner app main activity on left side of app , right side area changeable fragment. http://cache.filehippo.com/img/ex/3049__ccleaner1.png

how it? imagine putting fragments in same place , change visibility show 1 @ moment, make code whole lot of mess.

i've done in past using usercontrols. it's worked nicely things choosing payment methods (cash, cc, cheque...).

there couple of options changing display, either have usercontrols present on form , hide or show them required or have empty placeholder panel , use factory construct appropriate usercontrol needed. i've done both , depends on complexity (and expected longevity , users) of project appropriate.

using model-view-presenter pattern helped managing of this.

what don't want end massive switch statement changes visibility of dozens of manually positioned controls individually. i've seen , way lies madness.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -