DateTimePickerCustomNet6 3.0.0

dotnet add package DateTimePickerCustomNet6 --version 3.0.0
NuGet\Install-Package DateTimePickerCustomNet6 -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DateTimePickerCustomNet6" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DateTimePickerCustomNet6 --version 3.0.0
#r "nuget: DateTimePickerCustomNet6, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DateTimePickerCustomNet6 as a Cake Addin
#addin nuget:?package=DateTimePickerCustomNet6&version=3.0.0

// Install DateTimePickerCustomNet6 as a Cake Tool
#tool nuget:?package=DateTimePickerCustomNet6&version=3.0.0

Nuget Nuget

DateTimePickerCustom

This projects contains a LibraryClass for a C# WPF application project. The library implements a DateTiemPicker, which besides the date picking has along side a time picking widgets.
Extented documenetations and comments for easy modifications and styling. Appropriate for a dropdown or popup widget for returning a DateTime value to a textbox, or for a stand-alone calander widget.

Table of Contents

Features

  1. LibraryClass for a DateTimePicker. All the logic is located in the code behind, which is heavily commented for easy understanding and modification.
  2. Therefore, the .xaml file is clean and contains only the styles (which will be moved in a different file in the next update) and the grid layout.
  3. The DatePicker, TimePicker and PopupWidget are independent components.
  4. The project solution has a WPF application connected to the library for testing the LibraryClass.

Image 1:if not available see github repo

In this Update the Popup widget is intergrated as an indepented feature, so you can inlude the popup only with a single tag. See Usage for explaining the Popup functionality

In this update the OK button will send DateTime info to the Textblock of the Popup. The static variables, ResultDate and ResultTime can be used for reading-only the TextBlock DateTime data anywhere in your classes. See Usage for an example.

Installation

Method 1. NuGet

  1. Download using Nuget Package manager.
  2. In the Solution Manager, under dependancies there should be a DateTimePickerCustom.dll file.
  3. Include that file in your WPF Application by using the following line.

xmlns:[YourNamespace]="clr-namespace:DateTimePickerCustom;assembly=DateTimePickerCustom"

Method 2. GitHub

  1. Clone Github repository and add the LibraryClass to your solution.
  2. This is how the solution tree in the solution explorer should look like, if you add a test WPF application.

Image 2:if not available see github repo

  1. Right-Click on the WPF application Project in the solution explorer and Add → Project Reference
  2. Importing the LbraryClass to the WPF aaplication using the lines with the gray arrow.

Image 3:if not available see github repo

Usage

Besides a stand-alone calander, its a great and stylized solution for a Date and Time Picker as a Popup for a TextBlock Date and time selection.

Image 4:if not available see github repo

Here is how to include the Popup element in your project (after installing the package).

Image 5:if not available see github repo

Here is how to use the values of the Popup (also storde in the Popup TextBlock), in your project.

Image 6:if not available see github repo

Contributing

If you would like to contribute to the project, I would love hearing from you. I message in github or in my e-mail.

License

MIT-license


Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 149 1/13/2024
2.0.0 115 1/3/2024
1.0.0 98 1/1/2024

In this release, a Popup widget with DateTime picker Widget is available. Also static variables for getting the popup text anywhere.