Created
November 23, 2012 23:55
-
-
Save belsrc/4137754 to your computer and use it in GitHub Desktop.
Measuring container height before collapsing - C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Window_Loaded( object sender, RoutedEventArgs e ) { | |
container.Measure( new Size( Double.PositiveInfinity, Double.PositiveInfinity ) ); | |
this._containHeight = container.DesiredSize.Height; | |
container.Height = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment