Share via


Window.SizeToContent Property

Gets or sets a value that specifies how the current window should be sized relative to its content.

Namespace: Microsoft.SPOT.Presentation
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public SizeToContent SizeToContent { get; set; }

Property Value

A value of the SizeToContent enumeration that specifies how the current window should be sized relative to its content. Note that the default return value is Manual.

Remarks

This property has the following limitations:

  • If you set the window's SizeToContent property to WidthAndHeight, you cannot programmatically alter the window's Height property or Width property.
  • If you set the window's SizeToContent property to Height, you can still programmatically alter the window's Height property.
  • If you set the window's SizeToContent property to Width, you can still programmatically alter the window's Width property.
  • If a user manually changes the window's size, autosizing is disabled and the window's SizeToContent property is set to Manual by default.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Window Class
Window Members
Microsoft.SPOT.Presentation Namespace