19 lines
667 B
C#
19 lines
667 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace cfs_tracker.ViewModels;
|
|
|
|
public partial class MonthCellViewModel : ObservableObject
|
|
{
|
|
public DateTime Date { get; init; }
|
|
public string DayNumberText { get; init; } = string.Empty;
|
|
public bool IsCurrentMonth { get; init; }
|
|
public bool IsToday { get; init; }
|
|
public bool HasEntries { get; init; }
|
|
|
|
public Color BackgroundColor { get; init; } = Colors.Transparent;
|
|
public Color TextColor { get; init; } = Colors.White;
|
|
public Color BorderColor { get; init; } = Colors.Transparent;
|
|
|
|
public bool IsPlaceholder => !IsCurrentMonth;
|
|
public bool ShowDayNumber => IsCurrentMonth;
|
|
} |