Skip to content

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.

csharp
public sealed class CalendarNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → CalendarNode

Properties ​

Child ​

The child grid node containing the calendar layout.

Returns: Hex1bNode

csharp
public Hex1bNode? Child { get; set; }

DaysInMonth ​

The number of days in the displayed month.

Returns: Int32

csharp
public int DaysInMonth { get; set; }

FirstDayOfWeek ​

The first day of the week for column ordering.

Returns: DayOfWeek

csharp
public DayOfWeek FirstDayOfWeek { get; set; }

IsFocusable ​

Returns true if this node can receive focus.

Returns: Boolean

csharp
public override bool IsFocusable { get; }

Month ​

The month being displayed. Only Year and Month are used.

Returns: DateOnly

csharp
public DateOnly Month { get; set; }

SelectedDay ​

Returns: Nullable<Int32>

csharp
public int? SelectedDay { get; set; }

SourceWidget ​

The source widget that was reconciled into this node.

Returns: CalendarWidget

csharp
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:

csharp
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>

csharp
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>

csharp
public override IEnumerable<Hex1bNode> GetFocusableNodes()

MeasureCore(Constraints) ​

Override this method to implement measuring logic for this node.

Parameters:

Returns: Size

csharp
protected override Size MeasureCore(Constraints constraints)

Render(Hex1bRenderContext) ​

Renders the node to the given context.

Parameters:

csharp
public override void Render(Hex1bRenderContext context)

Released under the MIT License.