'Declaration Public Shared Sub SetPreferredHeight( _ ByVal d As DependencyObject, _ ByVal value As Double _ )
public static void SetPreferredHeight( DependencyObject d, double value )
PreferredHeight property is different from setting the Height property of the element directly. When you set Height property of the element, that will be its final height. It may be desirable instead to specify a preferred height and then let the layout panel adjust the size (make it bigger or smaller) based on the availability of space.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2