New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a picker which displays a collection of TimeSpan objects.

Definition

Namespace:Telerik.Maui.Controls.Chat

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class ChatTimePicker : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewChatTimePicker

Derived Classes: TimePickerView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()

Constructors

Initializes a new instance of the ChatTimePicker class.

C#
public ChatTimePicker()

Fields

ControlTemplateProperty

BindableProperty

Identifies the ControlTemplate property.

C#
public static readonly BindableProperty ControlTemplateProperty

EndTimeProperty

BindableProperty

Identifies the EndTime property.

C#
public static readonly BindableProperty EndTimeProperty

Identifies the ItemSelectedCommand property.

C#
public static readonly BindableProperty ItemSelectedCommandProperty

SelectedItemProperty

BindableProperty

Identifies the SelectedItem property.

C#
public static readonly BindableProperty SelectedItemProperty

SelectedValueProperty

BindableProperty

Identifies the SelectedValue property.

C#
public static readonly BindableProperty SelectedValueProperty

StartTimeProperty

BindableProperty

Identifies the StartTime property.

C#
public static readonly BindableProperty StartTimeProperty

TimeFormatProperty

BindableProperty

Identifies the TimeFormat property.

C#
public static readonly BindableProperty TimeFormatProperty

TimeIntervalProperty

BindableProperty

Identifies the TimeInterval property.

C#
public static readonly BindableProperty TimeIntervalProperty

Properties

ControlTemplate

ControlTemplate

Gets or sets the control template of this view.

C#
public ControlTemplate ControlTemplate { get; set; }

Gets or sets the last time span that can be selected.

C#
public TimeSpan EndTime { get; set; }

Gets or sets the collection of TimePickerItem objects.

C#
public List<TimePickerItem> Items { get; }

Gets or sets the command executed when an item is selected. The parameter of this command is of type TimePickerItem.

C#
public ICommand ItemSelectedCommand { get; set; }

Gets or sets the selected TimePickerItem.

C#
public TimePickerItem SelectedItem { get; set; }

Gets or sets the selected TimeSpan value.

C#
public TimeSpan? SelectedValue { get; set; }

Gets or sets the first time span that can be selected.

C#
public TimeSpan StartTime { get; set; }

Gets or sets the format of the displayed time spans.

C#
public string TimeFormat { get; set; }

Gets or sets the interval between two consecutive TimePickerItem objects.

C#
public TimeSpan TimeInterval { get; set; }

Methods

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Events

Occurs when when an item is selected.

C#
public event EventHandler<ValueChangedEventArgs<TimePickerItem>> ItemSelected