Xceed Toolkit for Maui v2.0 Documentation
FormatPattern Property (TimeUpDown)
Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > TimeUpDown Class : FormatPattern Property
Gets or sets the TimeFormatPattern that will be used to display the TimeOnly value.
Syntax
'Declaration
 
Public Property FormatPattern As TimeFormatPattern
'Usage
 
Dim instance As TimeUpDown
Dim value As TimeFormatPattern
 
instance.FormatPattern = value
 
value = instance.FormatPattern
public TimeFormatPattern FormatPattern {get; set;}
Remarks

The default value is TimeFormatPattern.ShortTime.

Note that when a Custom value is used for this property, it is also necessary to add a value to the CustomFormatString property; this is done in order to set the string that will contain the time symbols. You can refer to the example below to see how this can look in your code.

Example

The following code would display this control:

<xctk:TimeUpDown HorizontalOptions="Center"
                 FormatPattern="Custom"
                 CustomFormatString=" 'Time is ' h:mm"/>
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TimeUpDown Class
TimeUpDown Members