Skip to content

Commit 91ef42a

Browse files
committed
Updates docs based on new TimePicker seconds support from AvaloniaUI/Avalonia#16079
1 parent c250c75 commit 91ef42a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/basics/user-interface/controls/builtin-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ These controls display repeating data, in either a tabular or list format:
6565
|[CalendarDatePicker](../../../reference/controls/calendar/calendar-date-picker.md)|DateTime|An extension of the calendar control that includes a text box and button.|
6666
|[ColorPicker](../../../reference/controls/colorpicker)|Color / HsvColor|The color picker supports user-selection and editing of colors using a spectrum, palette and component sliders. It also supports an optional alpha component, RGB or HSV color models and hexadecimal color values.|
6767
|[DatePicker](../../../reference/controls/datepicker.md)|DateTime|The date picker has three 'spinner' controls to allow the user to pick a date value.|
68-
|[TimePicker](../../../reference/controls/timepicker.md)|TimeSpan|The time picker has three 'spinner' controls to allow the user to pick a time from hours, minutes and seconds.|
68+
|[TimePicker](../../../reference/controls/timepicker.md)|TimeSpan|The time picker has two to four 'spinner' controls to allow the user to pick a time from hours, minutes and seconds.|
6969

7070
## Displaying images
7171

docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ This section describes the differences in controls in vanilla WPF and UWP (with
170170
||| TeachingTip | First introduced in the Windows UI Library |
171171
| TextBlock | TextBlock | TextBlock | |
172172
| TextBox | TextBox | TextBox | |
173-
| TimePicker || TimePicker | |
173+
| TimePicker || TimePicker | Avalonia's TimePicker is very similar to UWP's but additionally, optionally, supports seconds |
174174
| TimePickerFlyout || TimePickerFlyout | |
175175
| ToggleButton | ToggleButton | ToggleButton | |
176176
||| ToggleSplitButton | First introduced in the Windows UI Library |

docs/reference/controls/timepicker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import TimePickerScreenshot from '/img/reference/controls/timepicker/timepicker.
77

88
# TimePicker
99

10-
The `TimePicker` has two or three 'spinner' controls to allow the user to pick a time value. The time picker can work in 24 or 12 hour formats. The picker controls display when the control is clicked.
10+
The `TimePicker` has two to four 'spinner' controls to allow the user to pick a time value. The time picker can work in 24 or 12 hour formats and supports hours, minutes, and seconds. The picker controls display when the control is clicked.
1111

1212
## Useful Properties
1313

1414
You will probably use these properties most often:
1515

16-
<table><thead><tr><th width="231">Property</th><th>Description</th></tr></thead><tbody><tr><td><code>ClockIdentifier</code></td><td>Choose between 12 and 24 hour formats. The 12 hour format shows a third spinner for AM/PM.</td></tr><tr><td><code>MinuteIncrement</code></td><td>Defines selectable increments for the minutes. The default is 1 (all minutes can be selected).</td></tr><tr><td><code>SelectedTime</code></td><td>(Nullable TimeSpan) the selected time.</td></tr></tbody></table>
16+
<table><thead><tr><th width="231">Property</th><th>Description</th></tr></thead><tbody><tr><td><code>ClockIdentifier</code></td><td>Choose between 12 and 24 hour formats. The 12 hour format shows an additional spinner for AM/PM.</td></tr><tr><td><code>UseSeconds</code></td><td>Shows an additional spinner for seconds when true. The default is false (seconds spinner is not shown).</td></tr><tr><td><code>MinuteIncrement</code></td><td>Defines selectable increments for the minutes. The default is 1 (all minutes can be selected).</td></tr><tr><td><code>SecondIncrement</code></td><td>Defines selectable increments for the seconds. The default is 1 (all seconds can be selected).</td></tr><tr><td><code>SelectedTime</code></td><td>(Nullable TimeSpan) the selected time.</td></tr></tbody></table>
1717

1818
## Example
1919

docs/reference/controls/value-selector-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ description: REFERENCE
66

77
These controls provide a graphical presentation to represent a value of a specific type. They also provide some kind of graphical interaction to change the value.
88

9-
<table><thead><tr><th width="208.33333333333331">Control</th><th width="119">Type</th><th>Description</th></tr></thead><tbody><tr><td><a href="checkbox">CheckBox</a></td><td>Boolean</td><td>True value presented as a check mark. Click interaction toggles the value. Has an option to display an 'unknown' value.</td></tr><tr><td><a href="slider">Slider</a></td><td>Double</td><td>Relative value compared to a maximum and minimum value presented as the position along the length of the slider track of the slider button. Drag interaction on the slider button can alter the value between the maximum and minimum values. Keyboard and click interactions can also nudge the value.</td></tr><tr><td><a href="./calendar/">Calendar</a></td><td>DateTime</td><td>The calendar is a control for users to select dates or date ranges.</td></tr><tr><td><a href="./calendar/calendar-date-picker">CalendarDatePicker</a></td><td>DateTime</td><td>An extension of the calendar control that includes a text box and button.</td></tr><tr><td><a href="datepicker">DatePicker</a></td><td>DateTime</td><td>The date picker has three 'spinner' controls to allow the user to pick a date value.</td></tr><tr><td><a href="./timepicker">TimePicker</a></td><td>TimeSpan</td><td>The time picker has three 'spinner' controls to allow the user to pick a time from hours, minutes and seconds. </td></tr></tbody></table>
9+
<table><thead><tr><th width="208.33333333333331">Control</th><th width="119">Type</th><th>Description</th></tr></thead><tbody><tr><td><a href="checkbox">CheckBox</a></td><td>Boolean</td><td>True value presented as a check mark. Click interaction toggles the value. Has an option to display an 'unknown' value.</td></tr><tr><td><a href="slider">Slider</a></td><td>Double</td><td>Relative value compared to a maximum and minimum value presented as the position along the length of the slider track of the slider button. Drag interaction on the slider button can alter the value between the maximum and minimum values. Keyboard and click interactions can also nudge the value.</td></tr><tr><td><a href="./calendar/">Calendar</a></td><td>DateTime</td><td>The calendar is a control for users to select dates or date ranges.</td></tr><tr><td><a href="./calendar/calendar-date-picker">CalendarDatePicker</a></td><td>DateTime</td><td>An extension of the calendar control that includes a text box and button.</td></tr><tr><td><a href="datepicker">DatePicker</a></td><td>DateTime</td><td>The date picker has three 'spinner' controls to allow the user to pick a date value.</td></tr><tr><td><a href="./timepicker">TimePicker</a></td><td>TimeSpan</td><td>The time picker has two to four 'spinner' controls to allow the user to pick a time from hours, minutes and seconds. </td></tr></tbody></table>

0 commit comments

Comments
 (0)