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

DateTimePickerCustomNet6

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

DateTimePickerCustomNet6

A LibraryClass for a C# WPF application project, in .NET 6.0. The library implements a DateTimePicker, which besides the date picking has along side a time picking widgets. Extented documenetations and comments for easy modifications and styling. Popup widget intergrated and ready to use, or for a stand-alone calander widget.

3.0.0
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

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

  • DateTimePickerCustom

Features

  • LibraryClass for a DateTimePicker. All the logic is located in the code behind, which is heavily commented for easy understanding and modification.
  • 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.
  • The DatePicker, TimePicker and PopupWidget are independent components.
  • 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

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

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

Method 2. GitHub

  • Clone Github repository and add the LibraryClass to your solution.
  • 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

  • Right-Click on the WPF application Project in the solution explorer and Add -> Project Reference
  • 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

Keywords

Date

FAQs

Package last updated on 13 Jan 2024

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.