An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Xamarin.iOS.DatePickerDialog
[![NuGet Badge](https://buildstats.info/nuget/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`

Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift demo