Class DataFormTimeItem
Represents the class that encapsulates the layout and time picker editor setting for a data field.
Inherited Members
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public class DataFormTimeItem : DataFormItem, IThemeElement
Constructors
DataFormTimeItem()
Initializes a new instance of the DataFormTimeItem class.
Declaration
public DataFormTimeItem()
Fields
FormatProperty
Identifies the Format dependency property.
Declaration
public static readonly BindableProperty FormatProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Format dependency property. |
Properties
Format
Gets or sets the time format for Time Picker.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is |
Examples
The below examples shows, how to use the Format property of DataFormTimeItem in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
AutoGenerateItems="False">
<dataForm:SfDataForm.Items>
<dataForm:DataFormTimeItem FieldName="Time" Format="hh:mm" />
</dataForm:SfDataForm.Items>
</dataForm:SfDataForm>