CalendarNode
Namespace: Hex1b.Nodes
Assembly: Hex1b.dll
Render node for . Wraps an internally-built that contains interactive day cells. The grid's child s handle focus and click events individually — this node delegates layout, rendering, and focus traversal to the child grid.
public sealed class CalendarNode : Hex1bNodeInheritance
Object → Hex1bNode → CalendarNode
Properties
Child
The child grid node containing the calendar layout.
Returns: Hex1bNode
public Hex1bNode? Child { get; set; }DaysInMonth
The number of days in the displayed month.
Returns: Int32
public int DaysInMonth { get; set; }FirstDayOfWeek
The first day of the week for column ordering.
Returns: DayOfWeek
public DayOfWeek FirstDayOfWeek { get; set; }IsFocusable
Returns true if this node can receive focus.
Returns: Boolean
public override bool IsFocusable { get; }Month
The month being displayed. Only Year and Month are used.
Returns: DateOnly
public DateOnly Month { get; set; }SelectedDay
Returns: Nullable<Int32>
public int? SelectedDay { get; set; }SourceWidget
The source widget that was reconciled into this node.
Returns: CalendarWidget
public CalendarWidget? SourceWidget { get; set; }Methods
ArrangeCore(Rect)
Override this method to implement arranging logic for this node. The base implementation saves previous bounds, marks dirty on change, and sets bounds.
Parameters:
bounds(Rect):
protected override void ArrangeCore(Rect bounds)GetChildren()
Gets the direct children of this node for structural tree traversal. Container nodes should override this to return their children.
Returns: IEnumerable<Hex1bNode>
public override IEnumerable<Hex1bNode> GetChildren()GetFocusableNodes()
Delegates focusable nodes to the child grid so individual day cells (wrapped in ) appear in the focus ring.
Returns: IEnumerable<Hex1bNode>
public override IEnumerable<Hex1bNode> GetFocusableNodes()MeasureCore(Constraints)
Override this method to implement measuring logic for this node.
Parameters:
constraints(Constraints):
Returns: Size
protected override Size MeasureCore(Constraints constraints)Render(Hex1bRenderContext)
Renders the node to the given context.
Parameters:
context(Hex1bRenderContext):
public override void Render(Hex1bRenderContext context)