Interface IRepeaterBuilder
A repeater, the Repeater element of a view file, built in C#. It draws one row per item
in a list.
public interface IRepeaterBuilder : IControlBuilder<IRepeaterBuilder>
- Inherited Members
Methods
BindItems(string)
Binds the rows to the view model property propertyName, which holds the
list of items.
IRepeaterBuilder BindItems(string propertyName)
Parameters
propertyNamestring
Returns
BindSelectedItem(string)
Binds the selected item to the view model property propertyName, and writes
it back as the selection changes.
IRepeaterBuilder BindSelectedItem(string propertyName)
Parameters
propertyNamestring
Returns
Horizontal()
Lays the rows out left to right.
IRepeaterBuilder Horizontal()
Returns
Vertical()
Lays the rows out top to bottom.
IRepeaterBuilder Vertical()
Returns
WithActivateCommand(string)
Sets the view model's ICommand property run when a row is double-clicked or activated
with Enter.
IRepeaterBuilder WithActivateCommand(string command)
Parameters
commandstring
Returns
WithBorderColor(string)
Sets the color of a border drawn around the whole list.
IRepeaterBuilder WithBorderColor(string colorHex)
Parameters
colorHexstring
Returns
WithBorderThickness(int)
Sets the border's width in pixels. Has no effect without a border color.
IRepeaterBuilder WithBorderThickness(int thickness)
Parameters
thicknessint
Returns
WithFillColor(string)
Sets a flat fill drawn behind every row.
IRepeaterBuilder WithFillColor(string colorHex)
Parameters
colorHexstring
Returns
WithFocusColor(string)
Sets the outline drawn around the selected row while the list has keyboard focus.
IRepeaterBuilder WithFocusColor(string colorHex)
Parameters
colorHexstring
Returns
WithHoverColor(string)
Sets the fill drawn behind the row under the pointer.
IRepeaterBuilder WithHoverColor(string colorHex)
Parameters
colorHexstring
Returns
WithItemSpacing(int)
Sets the gap in pixels between rows.
IRepeaterBuilder WithItemSpacing(int spacing)
Parameters
spacingint
Returns
WithItemTemplate(Action<IRepeaterItemTemplateBuilder>)
The layout each item is drawn with. Bindings inside it resolve against the item, not the
view model, so BindText("Name") reads each item's own Name.
IRepeaterBuilder WithItemTemplate(Action<IRepeaterItemTemplateBuilder> configure)
Parameters
configureAction<IRepeaterItemTemplateBuilder>
Returns
WithMaxExtent(int)
Sets the largest the list may grow along its orientation, in pixels. Rows past that are scrolled to.
IRepeaterBuilder WithMaxExtent(int extent)
Parameters
extentint
Returns
WithPadding(Spacing)
Sets the padding inside the list, around the rows.
IRepeaterBuilder WithPadding(Spacing spacing)
Parameters
spacingSpacing
Returns
WithPadding(int)
Sets the same padding on all four sides, in pixels.
IRepeaterBuilder WithPadding(int padding)
Parameters
paddingint
Returns
WithPadding(int, int)
Sets the horizontal and vertical padding, in pixels.
IRepeaterBuilder WithPadding(int horizontalPadding, int verticalPadding)
Parameters
Returns
WithPadding(int, int, int, int)
Sets the left, top, right and bottom padding, in pixels.
IRepeaterBuilder WithPadding(int leftPadding, int topPadding, int rightPadding, int bottomPadding)
Parameters
Returns
WithScrollIndicatorColor(string)
Sets the color of the scroll indicator shown when the rows do not all fit.
IRepeaterBuilder WithScrollIndicatorColor(string colorHex)
Parameters
colorHexstring
Returns
WithSelectionColor(string)
Sets the fill drawn behind the selected row.
IRepeaterBuilder WithSelectionColor(string colorHex)
Parameters
colorHexstring
Returns
WithSelectionMarkerColor(string)
Sets the color of the marker drawn down the left edge of the selected row.
IRepeaterBuilder WithSelectionMarkerColor(string colorHex)
Parameters
colorHexstring
Returns
WithSelectionMarkerThickness(int)
Sets the width in pixels of the selected row's left-edge marker.
IRepeaterBuilder WithSelectionMarkerThickness(int thickness)
Parameters
thicknessint
Returns
WithSize(int, int)
Sets the list's size in pixels. A height caps how tall the list grows.
IRepeaterBuilder WithSize(int width, int height)
Parameters
Returns
WithStretch(bool)
Sets whether the list takes the size its parent layout gives it, rather than sizing to its rows.
IRepeaterBuilder WithStretch(bool stretch)
Parameters
stretchbool