BoardBreakpoint class Core
What a Board changes while its width lies in a range - a CSS media query (@media (min-width: 900px) { … }) as a typed block: other tracks, gaps or padding, tiles placed elsewhere or hidden, and style rules that hold only there. Everything is optional; what a breakpoint leaves unset stays as the board (or an earlier breakpoint) has it. Made and filled by Board.When, fixed afterwards.
public sealed class BoardBreakpoint
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Properties
ColumnGap
public double? ColumnGap { get; set; }The space between columns while the breakpoint holds; null keeps the board's.
Columns
public IReadOnlyList<TrackSize>? Columns { get; set; }The columns while the breakpoint holds; null keeps the board's.
IsActive
public bool IsActive { get; }True while the board's width lies in the range (as of its last layout).
MaxWidth
public double MaxWidth { get; }The width from which on it no longer holds; infinity for none.
MinWidth
public double MinWidth { get; }The narrowest width the breakpoint holds at.
Padding
public Insets? Padding { get; set; }The board's padding while the breakpoint holds; null keeps the board's.
RowGap
public double? RowGap { get; set; }The space between rows while the breakpoint holds; null keeps the board's.
Rows
public IReadOnlyList<TrackSize>? Rows { get; set; }The rows while the breakpoint holds; null keeps the board's.
StyleSheet
public StyleSheet? StyleSheet { get; set; }Style rules that hold only while the breakpoint does - laid over the board's own sheet, as the rules inside an @media block come after those outside it.
Methods
Flow
public BoardBreakpoint Flow(Control control, int rowSpan = 1, int colSpan = 1);Lets the board place the tile of control in reading order while the breakpoint holds (Board.Flow).
Hide
public BoardBreakpoint Hide(Control control);Hides the tile of control while the breakpoint holds: it is neither drawn nor measured, and neither the pointer nor Tab reaches it.
Place
public BoardBreakpoint Place(Control control, int row, int col, int rowSpan = 1, int colSpan = 1);Puts the tile of control into other cells while the breakpoint holds (and shows it, should an earlier breakpoint hide it).
