WPF Auto height in code

Perhaps this link will help you.

At times, you may want to
programmatically set the Height or
Width of a WPF element to Auto in
code. To do this, just use the
Double.NaN (Not a Number) value.

For example, in C#:

this.txtName.Width = Double.NaN;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)