Skip to content

CalendarWidget ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A calendar widget that displays a month view, composed from . The grid has 7 columns (one per day of the week) and enough rows to display a header plus all weeks of the specified month.

csharp
public sealed record CalendarWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<CalendarWidget>

Inheritance ​

Object → Hex1bWidget → CalendarWidget

Implements ​

Constructors ​

CalendarWidget(DateOnly) ​

A calendar widget that displays a month view, composed from . The grid has 7 columns (one per day of the week) and enough rows to display a header plus all weeks of the specified month.

Parameters:

  • Month (DateOnly): The month to display. Only the Year and Month components are used.
csharp
public CalendarWidget(DateOnly Month)

Properties ​

Month ​

The month to display. Only the Year and Month components are used.

Returns: DateOnly

csharp
public DateOnly Month { get; init; }

Methods ​

OnSelected(Action<CalendarDateSelectedEventArgs>) ​

Sets a synchronous handler for day selection events.

Parameters:

Returns: CalendarWidget

csharp
public CalendarWidget OnSelected(Action<CalendarDateSelectedEventArgs> handler)

OnSelected(Func<CalendarDateSelectedEventArgs, Task>) ​

Sets an asynchronous handler for day selection events.

Parameters:

Returns: CalendarWidget

csharp
public CalendarWidget OnSelected(Func<CalendarDateSelectedEventArgs, Task> handler)

Released under the MIT License.