You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Calendar-Wpf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Calendar-Wpf

Custome calendar for WPF

1.1.5
nugetNuGet
Version published
Maintainers
1
Created
Source

Calendar-Wpf

A modern, customizable WPF calendar control for .NET 8 applications. Easily integrate a feature-rich calendar UI into your desktop projects. It provides a modern, user-friendly interface for date selection, supporting month and year navigation, and is designed for easy integration into your WPF projects.

Features

  • Date Selection: Select a date from a visual calendar or by direct text input.
  • Multiple Date Formats: Choose from several common date formats or define your own.
  • Navigation: Easily switch between month, year, and decade views.
  • Theming: Customize colors, borders, font, and corner radius.
  • MVVM Support: All main properties are dependency properties for easy data binding.
  • Validation: Prevents selection of future dates if desired.
  • Editable Mode: Toggle between editable text input and read-only display.
  • Events: Notifies when the selected date changes.

Installation

Install via NuGet Package Manager:

Or via .NET CLI:

dotnet add package Calendar-Wpf

Usage

  • Add Namespace

In your XAML file:

xmlns:calendar="clr-namespace:CalendarWpf;assembly=Calendar-Wpf"

  • Add the CalendarView Control

<calendar:CustomCalendar x:Name="myCalendar" AllowFutureDate="False" // Set to true to allow future dates DateFormat="MM_dd_yyyy" // Choose from DateFormatType enum IsEditable="False" /> // Set IsEditable to true to allow text editing

  • To reset the control use the Initialize method: For e.g. myCalendar.Initialize(); in the code behind.

API Overview

PropertyTypeDescription
PaddingThicknessSet padding of the control.
CalendarIconImageSourceSet calendar icon as per choice.
IconHeightWidthdoubleSet height and width for calendar icon.
SelectedDateTimeDateTimeThe currently selected date.
SelectedDateTextstringThe selected date as a formatted string.
DateFormatDateFormatTypeEnum for date format (e.g., MM_dd_yyyy, yyyy_MM_dd).
AllowFutureDateboolIf false, prevents selecting dates in the future.
IsEditableboolAllows direct text editing of the date.
FontFamilyFontFamilyFont for the control.
FontSizedoubleFont size.
ForegroundColorBrushText color.
PlaceholderColorBrushMask placeholder color.
BackgroundColorBrushBackground color.
BorderBrushColorBrushBorder color.
BorderThicknessThicknessBorder thickness.
CornerRadiusCornerRadiusBorder corner radius.

DateFormatType Enum

  • dd_MM_yyyy
  • dd_MM_yy
  • M_d_yyyy
  • M_d_yy
  • MM_dd_yy
  • MM_dd_yyyy
  • yy_MM_dd
  • yyyy_MM_dd

Requirements

  • .NET 8 or later
  • Windows Presentation Foundation (WPF)

Attribution

  • Flaticon

Flaticon

Calendar day icons created by Rakib Hassan Rahim - Flaticon

License

This project is licensed under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Please open an issue or submit a pull request.

Calendar-Wpf � The easy way to add a modern calendar to your WPF apps.

Keywords

calendar

FAQs

Package last updated on 31 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.