TimePicker
A TimePicker allows you to select a time in a user-friendly way.
<TimePicker x:Name="timePicker"
Time="12:20:25"
PropertyChanged="OnTimeChanged" />
The PropertyChanged event enables you to detect the time selected/changed.
Code Behind
using System.ComponentModel;
namespace timepicker;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
void OnTimeChanged(object sender, PropertyChangedEventArgs args)
{
System.Diagnostics.Debug.WriteLine(timePicker.Time);
}
}
Download