Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Visibility.Collapsed/Hidden not working?

$
0
0
Ok im not sure why this aint working. Basically I have a BorderControl which hosts a Grid which hosts various controls. The borderControl starts with its Visibility set to Collapsed. When I click a button in my application the visibility is changed to visible and a quick animation is played.

This all works fine.

Now there is another button which will change the visibility of the BorderControl back to Collapsed. Problem is when I push the button it does nothing.

Code for the button
private void btnGClose_Click(object sender, RoutedEventArgs e)
{
      bdGroupEdit.Visibility = Visibility.Collapsed;
}
Any ideas as to why this might not work?

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>