Wednesday, September 17, 2014

Personas: a trick to show/hide controls

Personas 2.0 does not support dynamic show/hide controls. Here is a "tricky" way you may do:

1. Create an empty label control which has a size enough to cover the controls you want to hide.
2. Place the label at the left of the hidding controls.
3. Set label property: width to NaN, and background color the same as the overall background color.
4. For Hidding: set the label value to an empty string long enough.
    For Showing: set the label value to one empty char.

That's it! :-)

Dong

No comments:

Post a Comment