https://github.com/alexsorokoletov/xamarin.ios.datepickerdialog
Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift
https://github.com/alexsorokoletov/xamarin.ios.datepickerdialog
bindings controls ios nuget xamarin xamarin-ios
Last synced: 2 months ago
JSON representation
Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift
- Host: GitHub
- URL: https://github.com/alexsorokoletov/xamarin.ios.datepickerdialog
- Owner: alexsorokoletov
- License: mit
- Created: 2016-06-15T07:49:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T19:40:26.000Z (about 4 years ago)
- Last Synced: 2025-04-06T15:56:18.349Z (2 months ago)
- Topics: bindings, controls, ios, nuget, xamarin, xamarin-ios
- Language: C#
- Size: 355 KB
- Stars: 24
- Watchers: 2
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xamarin.iOS.DatePickerDialog
[](https://www.nuget.org/packages/Xamarin.iOS.DatePickerDialog/)Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift
## How to use
Install Nuget
`Install-Package Xamarin.iOS.DatePickerDialog````
var startingTime = DateTime.Now;
var dialog = new DatePickerDialog();
dialog.Show("Choose time", "Done", "Cancel", UIDatePickerMode.Time, (dt) =>
{
TimePickLabel.Text = dt.ToString();
}, startingTime);
```There are 3 modes supported:
`UIDatePickerMode.Time`
`UIDatePickerMode.Date`
`UIDatePickerMode.DateAndTime`
![]()