-1

Possible Duplicate:
Difference between Visibility.Collapsed and Visibility.Hidden

i am working on localization .and i can not get meaning of the visibility and collapse.

 public Visibility CompanyModificationAllowed
    {
        get
        {
            if ((User.Priviledges & PriviledgeConstants.USER) != 0)
                return Visibility.Visible;

            return Visibility.Collapsed;
        }
    }

Explain in brief.

Community
  • 1
  • 1
prjndhi
  • 1,915
  • 4
  • 17
  • 26

1 Answers1

0
  • Visible: the element is visible.
  • Collapsed: the element is not, and the layout doesn't even have space for it.
  • Hidden: the element is not visible, but the layout reserves spaces for it.

http://msdn.microsoft.com/en-us/library/system.windows.visibility.aspx

carlosfigueira
  • 85,035
  • 14
  • 131
  • 171
  • what is the mean of **"the element is not, and the layout doesn't even have space for it."** – prjndhi May 19 '12 at 15:14
  • @prjndhi: I believe it means that the element is completely not rendered. Whereas with `Hidden` the element itself isn't rendered, but the space which it would occupy is. – David May 19 '12 at 15:15