{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-special-dates",
  "framework": "winforms",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "special-dates",
  "dependencies": [
    "Syncfusion.SfInput.WinForms"
  ],
  "description": "SfCalendar that decorates a set of holidays and observances as special date cells with an icon, a tool tip and a description label.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/winforms/llms.txt",
    "skillPack": "syncfusion/winforms-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/winforms/scheduler-special-dates.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-special-dates/scheduler.Designer.cs",
      "content": "﻿#region Copyright Syncfusion Inc. 2001-2019.\n// Copyright Syncfusion Inc. 2001-2019. All rights reserved.\n// Use of this code is subject to the terms of our license.\n// A copy of the current license can be obtained at any time by e-mailing\n// licensing@syncfusion.com. Any infringement will be prosecuted under\n// applicable laws. \n#endregion\nusing Syncfusion.WinForms.Input;\nusing System;\nusing System.Collections.Generic;\nusing System.Drawing;\n\nnamespace SpecialDates\n{\n    partial class Form1\n    {\n        /// <summary>\n        /// Required designer variable.\n        /// </summary>\n        private System.ComponentModel.IContainer components = null;\n\n        /// <summary>\n        /// Clean up any resources being used.\n        /// </summary>\n        /// <param name=\"disposing\">true if managed resources should be disposed; otherwise, false.</param>\n        protected override void Dispose(bool disposing)\n        {\n            if (disposing && (components != null))\n            {\n                components.Dispose();\n            }\n            base.Dispose(disposing);\n        }\n\n        #region Windows Form Designer generated code\n\n        /// <summary>\n        /// Required method for Designer support - do not modify\n        /// the contents of this method with the code editor.\n        /// </summary>\n        private void InitializeComponent()\n        {            \n            this.panel6 = new System.Windows.Forms.Panel();\n            this.panel2 = new System.Windows.Forms.Panel();\n            this.borderPanel1 = new System.Windows.Forms.Panel();\n            this.label3 = new System.Windows.Forms.Label();\n            this.label2 = new System.Windows.Forms.Label();\n            this.sfCalendar = new Syncfusion.WinForms.Input.SfCalendar();\n            this.borderPanel1.SuspendLayout();\n            this.SuspendLayout();\n            // \n            // panel6\n            // \n            this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));\n            this.panel6.Dock = System.Windows.Forms.DockStyle.Right;\n            this.panel6.Location = new System.Drawing.Point(831, 0);\n            this.panel6.Name = \"panel6\";\n            this.panel6.Size = new System.Drawing.Size(1, 34);\n            this.panel6.TabIndex = 1;\n            // \n            // panel2\n            // \n            this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));\n            this.panel2.Dock = System.Windows.Forms.DockStyle.Top;\n            this.panel2.Location = new System.Drawing.Point(0, 34);\n            this.panel2.Name = \"panel2\";\n            this.panel2.Size = new System.Drawing.Size(832, 1);\n            this.panel2.TabIndex = 1;\n            // \n            // borderPanel1\n            // \n            this.borderPanel1.Controls.Add(this.label3);\n            this.borderPanel1.Controls.Add(this.label2);\n            this.borderPanel1.Controls.Add(this.sfCalendar);\n            this.borderPanel1.Location = new System.Drawing.Point(12, 60);\n            this.borderPanel1.Name = \"borderPanel1\";\n            this.borderPanel1.Size = new System.Drawing.Size(684, 526);\n            this.borderPanel1.TabIndex = 2;\n            // \n            // label3\n            // \n            this.label3.AutoSize = true;\n            this.label3.Font = new System.Drawing.Font(\"Segoe UI\", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));\n            this.label3.Location = new System.Drawing.Point(252, 449);\n            this.label3.Name = \"label3\";\n            this.label3.Size = new System.Drawing.Size(50, 20);\n            this.label3.TabIndex = 25;            \n\n\n            // \n            // label2\n            // \n            this.label2.AutoSize = true;\n            this.label2.Font = new System.Drawing.Font(\"Segoe UI Semibold\", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));\n            this.label2.Location = new System.Drawing.Point(150, 449);\n            this.label2.Name = \"label2\";\n            this.label2.Size = new System.Drawing.Size(106, 20);\n            this.label2.TabIndex = 17;\n            this.label2.Text = \"Selected Date:\";\n            // \n            // sfCalendar\n            // \n                                  \n            this.sfCalendar.FooterHeight = 30;\n            this.sfCalendar.HeaderHeight = 70;\n            this.sfCalendar.Location = new System.Drawing.Point(154, 64);          \n            this.sfCalendar.Name = \"sfCalendar\";\n            this.sfCalendar.NumberOfWeeksInView = 6;        \n            this.sfCalendar.ShowWeekNumbers = false;\n            this.sfCalendar.Size = new System.Drawing.Size(378, 354);            \n            this.sfCalendar.TabIndex = 16;\n            this.sfCalendar.Text = \"sfCalendar1\";\n            this.sfCalendar.TrailingDatesVisible = true;          \n            this.sfCalendar.MaxDate = new System.DateTime(2100, 01, 01);\n            this.sfCalendar.MinDate = new DateTime(1900, 01, 01);            \n          \n           \n\n            // \n            // Form1\n            // \n            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n            this.BackColor = ColorTranslator.FromHtml(\"#f3f3f3\");\n            this.ClientSize = new System.Drawing.Size(832, 661);\n            this.Controls.Add(this.borderPanel1);\n            this.Controls.Add(this.panel2);\n            this.Name = \"Form1\";\n            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n            this.Text = \"Special Dates\";\n            this.Load += new System.EventHandler(this.Form1_Load);\n            this.sfCalendar.SelectionChanged += SfCalendar_SelectionChanged;            \n            this.borderPanel1.ResumeLayout(false);\n            this.borderPanel1.PerformLayout();\n            this.ResumeLayout(false);\n            this.MaximizeBox = false;\n            this.MaximumSize = this.Size;\n            this.MinimumSize = this.Size;\n        }\n\n\n\n\n        #endregion\n\n        private System.Windows.Forms.Panel panel2;\n        private System.Windows.Forms.Panel panel6;\n        private System.Windows.Forms.Panel borderPanel1;\n        private Syncfusion.WinForms.Input.SfCalendar sfCalendar;\n        private System.Windows.Forms.Label label3;\n        private System.Windows.Forms.Label label2;\n    }\n}\n\n"
    },
    {
      "target": "src/components/scheduler-special-dates/scheduler.cs",
      "content": "using Syncfusion.WinForms.Controls;\nusing Syncfusion.WinForms.Input;\nusing Syncfusion.Windows.Forms;\nusing System;\nusing System.Collections.Generic;\nusing System.Drawing;\nusing System.Windows.Forms;\n\nnamespace SpecialDates\n{\n    /// <summary>\n    /// Demonstrates the SfCalendar special dates: a set of observances is marked\n    /// on the calendar with an icon, a description and a tool tip.\n    /// </summary>\n    public partial class Form1 : SfForm\n    {\n        /// <summary>\n        /// Initializes a new instance of the <see cref=\"Form1\"/> class.\n        /// </summary>\n        public Form1()\n        {\n            InitializeComponent();\n        }\n\n        #region Functions\n\n        /// <summary>\n        /// Centers the calendar panel inside the form.\n        /// </summary>\n        public void MakePanelCenter()\n        {\n            this.borderPanel1.Location = new Point(\n                this.ClientSize.Width / 2 - borderPanel1.Size.Width / 2,\n                this.ClientSize.Height / 2 - borderPanel1.Size.Height / 2);\n        }\n\n        /// <summary>\n        /// Builds the list of special dates that are shown on the calendar.\n        /// </summary>\n        public void ConfigureSpecialDate()\n        {\n            List<SpecialDate> specialDates = new List<SpecialDate>();\n\n            foreach (SpecialDatesDataSource.SpecialDateInfo observance in SpecialDatesDataSource.Observances)\n            {\n                SpecialDate specialDate = new SpecialDate\n                {\n                    BackColor = SpecialDatesDataSource.BackColor,\n                    Font = SpecialDatesDataSource.Font,\n                    ForeColor = SpecialDatesDataSource.ForeColor,\n                    Image = SpecialDatesDataSource.GetImage(observance),\n                    ImageAlign = ContentAlignment.MiddleCenter,\n                    IsDateVisible = false,\n                    TextAlign = ContentAlignment.MiddleCenter,\n                    TextImageRelation = TextImageRelation.TextBeforeImage,\n                    Value = observance.Value,\n                    Description = observance.Description\n                };\n\n                specialDates.Add(specialDate);\n            }\n\n            this.sfCalendar.SpecialDates = specialDates;\n            this.sfCalendar.SelectedDate = SpecialDatesDataSource.SelectedDate;\n        }\n\n        #endregion\n\n        #region Events\n\n        /// <summary>\n        /// Prepares the form when it is loaded.\n        /// </summary>\n        private void Form1_Load(object sender, EventArgs e)\n        {\n            MakePanelCenter();\n            ConfigureSpecialDate();\n            this.sfCalendar.ShowToolTip = true;\n            this.sfCalendar.ToolTipOpening += SfCalendar_ToolTipOpening;\n            SkinManager.SetVisualStyle(this, \"Office2019Colorful\");\n        }\n\n        /// <summary>\n        /// Shows the tool tip only for the special dates of the month view.\n        /// </summary>\n        private void SfCalendar_ToolTipOpening(SfCalendar sender, Syncfusion.WinForms.Input.Events.ToolTipOpeningEventArgs e)\n        {\n            if (e.ViewType == Syncfusion.WinForms.Input.Enums.CalendarViewType.Month && !e.IsSpecialDate)\n            {\n                e.Handled = true;\n            }\n\n            if (e.ViewType == Syncfusion.WinForms.Input.Enums.CalendarViewType.Year)\n            {\n                e.Handled = true;\n            }\n\n            if (e.ViewType == Syncfusion.WinForms.Input.Enums.CalendarViewType.Decade)\n            {\n                e.Handled = true;\n            }\n\n            if (e.ViewType == Syncfusion.WinForms.Input.Enums.CalendarViewType.Century)\n            {\n                e.Handled = true;\n            }\n        }\n\n        /// <summary>\n        /// Keeps the calendar panel centered while the form is resized.\n        /// </summary>\n        protected override void OnSizeChanged(EventArgs e)\n        {\n            MakePanelCenter();\n            base.OnSizeChanged(e);\n        }\n\n        /// <summary>\n        /// Shows the description of the selected date when it is a special date.\n        /// </summary>\n        private void SfCalendar_SelectionChanged(object sender, Syncfusion.WinForms.Input.Events.SelectionChangedEventArgs e)\n        {\n            if (this.sfCalendar.SelectedDate == null)\n            {\n                this.label3.Text = \"None\";\n                return;\n            }\n\n            SpecialDatesDataSource.SpecialDateInfo observance =\n                SpecialDatesDataSource.FindByDate(this.sfCalendar.SelectedDate.Value);\n\n            if (observance != null)\n            {\n                this.label3.Text = this.sfCalendar.SelectedDate.Value.ToLongDateString() +\n                                  \" ( \" + observance.Description + \" )\";\n            }\n            else\n            {\n                this.label3.Text = this.sfCalendar.SelectedDate.Value.ToLongDateString();\n            }\n        }\n\n        #endregion\n    }\n}\n"
    }
  ]
}