Partition - LiruJ/GuiCookie GitHub Wiki

Overview

A partition is an element with no controller and no components, used simply as an invisible container or spacer.

Other containers have also been grouped here, as their functionality is the same.

Definition

<Partition/>

<Pane Components="Frame"/>

<Square Components="Frame, AspectRatioFitter" Ratio="1" RatioMode="WidthControlsHeight"/>

The Partition template is simply an empty template.

A Pane template defines only a Frame component.

A Square template defines a Frame and an AspectRatioFitter component. It defaults to the height being matched to the width with a ratio of 1.

Usage

Partition

<Partition Size="128">
    <TextBox Size="100%, 32" Text="Child"/>
</Partition>

Simply adding a partition is all that is needed.

Pane

<Pane Size="128">
    <TextBox Size="100%, 32" Text="Child"/>
</Pane>

Simply adding a pane is all that is needed.

Square

<Square Size="128, 0"\>

Simply adding a square is all that is needed. The height will automatically set itself to 128 based on the width.

⚠️ **GitHub.com Fallback** ⚠️