Size Fitter#

class SizeFitter#

Sizes a panel to fit what it contains, rather than the other way round. See Panel.SizeFitter.

ContentSizeFit HorizontalFit { get; set; }#

How the width of the panel is chosen.

Game Scenes:

All

ContentSizeFit VerticalFit { get; set; }#

How the height of the panel is chosen.

Game Scenes:

All

enum ContentSizeFit#

How a size fitter sizes a panel along one direction.

Unconstrained#

Leave the size alone.

MinSize#

Use the smallest size the contents will fit in.

PreferredSize#

Use the size the contents ask for.