The Start
field of the LengthUnit
enum represents the start of the parent element along the appropriate axis. This is typically used in layout calculations to align or position elements relative to the beginning of their parent container.
The Start
field of the LengthUnit
enum represents the start of the parent element along the appropriate axis. This is typically used in layout calculations to align or position elements relative to the beginning of their parent container.
Use LengthUnit.Start
when you need to specify that an element should be aligned or positioned at the start of its parent container. This is particularly useful in flexbox or grid layouts where alignment along an axis is required.
// Example of using LengthUnit.Start in a UI component public class MyPanel : Panel { public MyPanel() { Style.Width = Length.Percent(100); Style.Height = Length.Percent(100); Style.JustifyContent = Justify.Start; Style.AlignItems = Align.Start; } }