I saw a question here showing to use this:
button.Visibility = Visibility.Hidden;
but I only have Collapsed or Visible, and Collapsed removes the button which changes the layout of the controls which I don’t want.
Any ideas on how to solve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another solution if you don’t want to resort to changing the Opacity would be encapsulate the button within a Grid and set the Grid height property to fixed size corresponding to the button height. Now you can Collapse the button without other controls rearranging themselves.
Cheers,
Anders