How to show/hide a container on click of a button.

I’m fairly new to Mendix so I’m sure this is just part of my learning curve.. Use Case: The user sees 2 buttons on a page (B1 and B2). There are also 2 containers (C1 and C2). Container C1 is visible and C2 is hidden. The user clicks on B2. C1 is hidden and C2 becomes visible. The user clicks on B1. C2 is hidden and C1 becomes visible.
1 answers

Make a container's visibility (property 'visible’of the container) dependent on an attribute-value of an object and use a nano (or micro-) flow to change an attribute- value of that object on the screen. That should do it.