Vixen
feb85697

RowsSyntax

class
csharp
public sealed class RowsSyntax

@rows (var index in Count) { <row> … </row> } — a virtualizing control's row template, built once per pool slot rather than once per item.

Read the guide page for this →

Remarks

This node is associated with the following syntax kinds:

Rows

Fields and properties (8)

  • public SyntaxToken RowsKeyword
  • public SyntaxToken OpenParenToken
  • public SyntaxToken VarKeyword
  • public SyntaxToken Identifier

    The name bound to the item index the slot is showing. ⚠ A Signal<int>, and for a sharper reason than @for's index: a slot's body runs once and is rebound by writing this, so a captured int would draw the item the slot showed when the pool grew, for ever.

  • public SyntaxToken InKeyword
  • public SyntaxToken Count

    How many items there are — an int, re-read whenever what it reads changes.

  • public SyntaxToken CloseParenToken
  • public MarkupBlockSyntax Body

    Exactly one plain element, which is the slot: its tag is what every pool slot is created under, and its attributes and children are applied to each one.

Methods (12)

Used by (8)

  • BinderVixen.Ui.Markup
  • ParserTestsVixen.Ui.Markup.Tests
  • RowsSyntaxVixen.Ui.Markup
  • SyntaxFactoryVixen.Ui.Markup
  • SyntaxRewriterVixen.Ui.Markup
  • SyntaxVisitorVixen.Ui.Markup
  • SyntaxVisitorVixen.Ui.Markup
  • VxmlParserVixen.Ui.Markup