MahApps.Metro by Jan Karger, Dennis Daume, Brendan Forster, Paul Jenkins, Jake Ginnivan, Alex Mitchell

<PackageReference Include="MahApps.Metro" Version="2.1.1" />

.NET API 3,425,904 bytes

 TimePickerBase

public abstract class TimePickerBase : Control
Represents a base-class for time picking.
public static readonly DependencyProperty CultureProperty

Identifies the Culture dependency property.

Identifies the HandVisibility dependency property.

Identifies the HoursItemStringFormat dependency property.

public static readonly IEnumerable<int> IntervalOf10

This list contains values from 0 to 50 with an interval of 10. It can be used to bind to SourceMinutes and SourceSeconds.

public static readonly IEnumerable<int> IntervalOf15

This list contains values from 0 to 45 with an interval of 15. It can be used to bind to SourceMinutes and SourceSeconds.

public static readonly IEnumerable<int> IntervalOf5

This list contains values from 0 to 55 with an interval of 5. It can be used to bind to SourceMinutes and SourceSeconds.

Identifies the IsClockVisible dependency property.

Identifies the IsDatePickerVisible dependency property.

Identifies the IsDropDownOpen dependency property.

public static readonly DependencyProperty IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Identifies the MinutesItemStringFormat dependency property.

Identifies the PickerVisibility dependency property.

Identifies the SecondsItemStringFormat dependency property.

Identifies the SelectedDateTime dependency property.

Identifies the SelectedTimeFormat dependency property.

public static readonly DependencyProperty SourceHoursProperty

Identifies the SourceHours dependency property.

Identifies the SourceMinutes dependency property.

Identifies the SourceSeconds dependency property.

protected Selector hourInput

public CultureInfo Culture { get; set; }

Gets or sets a value indicating the culture to be used in string formatting operations.

public TimePartVisibility HandVisibility { get; set; }

Gets or sets a value indicating the visibility of the clock hands in the user interface (UI).

public string HoursItemStringFormat { get; set; }

Gets or sets a composite string that specifies how to format the hour items.

public bool IsClockVisible { get; set; }

Gets or sets a value indicating whether the clock of this control is visible in the user interface (UI). This is a dependency property.

public bool IsDatePickerVisible { get; protected set; }

Gets or sets a value indicating whether the date can be selected or not. This property is read-only.

public bool IsDropDownOpen { get; set; }

Gets or sets a value indicating whether the drop-down for a TimePickerBase box is currently open.

public bool IsMilitaryTime { get; }

Gets a value indicating whether the AMDesignator that is specified by the CultureInfo set by the Culture ( Language if null) has not a value.

public bool IsReadOnly { get; set; }

Gets or sets a value indicating whether the contents of the TimePickerBase are not editable.

public string MinutesItemStringFormat { get; set; }

Gets or sets a composite string that specifies how to format the minute items.

public TimePartVisibility PickerVisibility { get; set; }

Gets or sets a value indicating the visibility of the selectable date-time-parts in the user interface (UI).

public string SecondsItemStringFormat { get; set; }

Gets or sets a composite string that specifies how to format the second items.

public DateTime? SelectedDateTime { get; set; }

Gets or sets the currently selected date and time.

public TimePickerFormat SelectedTimeFormat { get; set; }

Gets or sets the format that is used to display the selected time.

public IEnumerable<int> SourceHours { get; set; }

Gets or sets a collection used to generate the content for selecting the hours.

public IEnumerable<int> SourceMinutes { get; set; }

Gets or sets a collection used to generate the content for selecting the minutes.

public IEnumerable<int> SourceSeconds { get; set; }

Gets or sets a collection used to generate the content for selecting the seconds.

protected CultureInfo SpecificCultureInfo { get; }

Occurs when the SelectedDateTime property is changed.

protected TimePickerBase()

protected virtual void ApplyCulture()

protected virtual void ClockSelectedTimeChanged()

protected virtual void FocusElementAfterIsDropDownOpenChanged()

This method is invoked when the IsDropDownOpenProperty changes.

protected Binding GetBinding(DependencyProperty property, BindingMode bindingMode = 4)

protected virtual string GetValueForTextBox()

protected virtual void OnPopUpClosed()

protected virtual void OnPopUpOpened()

protected virtual void OnSelectedDateTimeChanged(DateTime? oldValue, DateTime? newValue)

protected void RaiseSelectedDateTimeChangedEvent(DateTime? oldValue, DateTime? newValue)

protected void SetDefaultTimeOfDayValues()

protected abstract void SetSelectedDateTime()

protected virtual void WriteValueToTextBox()