Library Blazor Namespaces Bergsoft Enumerations Padding

Padding

This enum is used in many components and its purpose is to set padding size and location in a single line. This is a [Flag] enum.

Values

NameDescription
NoneNo padding is added
LeftLeft padding added
RightRight padding added
TopTop padding
BottomBottom padding
TightSize of padding will be 4px
StandardSize of padding will be 8px
LargeSize of padding will be 12px
VerticalPadding on the top and bottom
HorizontalPadding on left and right side
AllPadding added on all sides

Example

<Panel Padding="Padding.All | Padding.Standard">
    <ListBox Padding="Padding.Vertical | Padding.Tight" />
</Panel>

Sign in