/// <summary>
    /// Sets the completed style of the spinner.
    /// </summary>
    /// <param name="column">The column.</param>
    /// <param name="style">The style.</param>
    /// <returns>The same instance so that multiple calls can be chained.</returns>
    public static SpinnerColumn CompletedStyle(this SpinnerColumn column, Style?style)
    {
        if (column is null)
        {
            throw new ArgumentNullException(nameof(column));
        }

        column.CompletedStyle = style;
        return(column);
    }
    /// <summary>
    /// Sets the text that should be shown instead of the spinner
    /// once a task completes.
    /// </summary>
    /// <param name="column">The column.</param>
    /// <param name="text">The text.</param>
    /// <returns>The same instance so that multiple calls can be chained.</returns>
    public static SpinnerColumn CompletedText(this SpinnerColumn column, string?text)
    {
        if (column is null)
        {
            throw new ArgumentNullException(nameof(column));
        }

        column.CompletedText = text;
        return(column);
    }
        /// <summary>
        /// Helps to update the ItemsSource of Day column by excluding weekend days.
        /// </summary>
        /// <param name="Date">The SelectedDateTime value of DateTimeSpinnerBase.</param>
        /// <param name="column">The day column.</param>
        /// <returns>The day column ItemsSource.</returns>
        private IEnumerable <object> RemoveWeekendItems(System.DateTimeOffset?Date, SpinnerColumn column)
        {
            var itemsSource = new List <object>();

            foreach (var item in column.ItemsSource)
            {
                int day = int.Parse(item.ToString());
                if (day <= DateTime.DaysInMonth(Date.Value.Year, Date.Value.Month))
                {
                    var dateTime = new DateTime(Date.Value.Year, Date.Value.Month, day);
                    if (dateTime.DayOfWeek != DayOfWeek.Saturday && dateTime.DayOfWeek != DayOfWeek.Sunday)
                    {
                        itemsSource.Add(item);
                    }
                }
            }

            return(itemsSource);
        }