CalendarDayContext
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
Provides contextual information about a specific day in a . Passed to the callback to allow custom content per day cell.
csharp
public sealed record CalendarDayContext : IEquatable<CalendarDayContext>Inheritance
Object → CalendarDayContext
Implements
Constructors
CalendarDayContext(DateOnly, bool, bool, bool, DayOfWeek)
Provides contextual information about a specific day in a . Passed to the callback to allow custom content per day cell.
Parameters:
Date(DateOnly): The date being rendered.IsToday(Boolean): Whether this date is today.IsSelected(Boolean): Whether this date is currently selected.IsWeekend(Boolean): Whether this date falls on a weekend (Saturday or Sunday).DayOfWeek(DayOfWeek): The day of the week for this date.
csharp
public CalendarDayContext(DateOnly Date, bool IsToday, bool IsSelected, bool IsWeekend, DayOfWeek DayOfWeek)Properties
Date
The date being rendered.
Returns: DateOnly
csharp
public DateOnly Date { get; init; }DayOfWeek
The day of the week for this date.
Returns: DayOfWeek
csharp
public DayOfWeek DayOfWeek { get; init; }IsSelected
Whether this date is currently selected.
Returns: Boolean
csharp
public bool IsSelected { get; init; }IsToday
Whether this date is today.
Returns: Boolean
csharp
public bool IsToday { get; init; }IsWeekend
Whether this date falls on a weekend (Saturday or Sunday).
Returns: Boolean
csharp
public bool IsWeekend { get; init; }