/// </example>
public class DateTimeView : View
{
- /// <summary>
- /// Identifies the DateTime bindable property.
- /// </summary>
public static readonly BindableProperty DateTimeProperty = BindableProperty.Create(nameof(DateTime), typeof(DateTime), typeof(DateTimeView), DateTime.Now, BindingMode.TwoWay, coerceValue: CoerceDate,
propertyChanged: DatePropertyChanged);
- /// <summary>
- /// Identifies the DisplayFormat bindable property.
- /// </summary>
public static readonly BindableProperty DisplayFormatProperty = BindableProperty.Create(nameof(DisplayFormat), typeof(string), typeof(DateTimeView), "%F");
- /// <summary>
- /// Identifies the MinimumDate bindable property.
- /// </summary>
public static readonly BindableProperty MinimumDateProperty = BindableProperty.Create(nameof(MinimumDate), typeof(DateTime), typeof(DateTimeView), new DateTime(1900, 1, 1),
validateValue: ValidateMinimumDate, coerceValue: CoerceMinimumDate);
- /// <summary>
- /// Identifies the MaximumDate bindable property.
- /// </summary>
public static readonly BindableProperty MaximumDateProperty = BindableProperty.Create(nameof(MaximumDate), typeof(DateTime), typeof(DateTimeView), new DateTime(2100, 12, 31),
validateValue: ValidateMaximumDate, coerceValue: CoerceMaximumDate);
/// The default format is taken as per the system locale settings.
/// </remarks>
/// <remarks>
- /// The maximum allowed format length is 64 chars.
- /// The format can include separators for each individual datetime field except for the AM/PM field.
- /// Each separator can be a maximum of 6 UTF-8 bytes.Space is also taken as a separator.
- /// Following are the allowed set of format specifiers for each datetime field.
- /// %Y : The year as a decimal number including the century.
- /// %m : The month as a decimal number (range 01 to 12).
- /// %b : The abbreviated month name according to the current locale.
- /// %B : The full month name according to the current locale.
- /// %h : The abbreviated month name according to the current locale(same as %b).
- /// %d : The day of the month as a decimal number(range 01 to 31).
- /// %e : The day of the month as a decimal number(range 1 to 31). Single digits are preceded by a blank.
- /// %I : The hour as a decimal number using a 12-hour clock(range 01 to 12).
- /// %H : The hour as a decimal number using a 24-hour clock(range 00 to 23).
- /// %k : The hour(24-hour clock) as a decimal number(range 0 to 23). Single digits are preceded by a blank.
- /// %l : The hour(12-hour clock) as a decimal number(range 1 to 12). Single digits are preceded by a blank.
- /// %M : The minute as a decimal number(range 00 to 59).
- /// %p : Either 'AM' or 'PM' according to the given time value, or the corresponding strings for the current locale.Noon is treated as 'PM' and midnight as 'AM'.
- /// %P : Like p, but in lower case: 'am' or 'pm' or a corresponding string for the current locale.
- /// %c : The preferred date and time representation for the current locale.
- /// %x : The preferred date representation for the current locale without the time.
- /// %X : The preferred time representation for the current locale without the date.
- /// %r : The complete calendar time using the AM/PM format of the current locale.
- /// %R : The hour and minute in decimal numbers using the format H:M.
- /// %T : The time of the day in decimal numbers using the format H:M:S.
- /// %F : The date using the format %Y-%m-%d.
+ /// The maximum allowed format length is 64 chars.<br>
+ /// The format can include separators for each individual datetime field except for the AM/PM field.<br>
+ /// Each separator can be a maximum of 6 UTF-8 bytes.Space is also taken as a separator.<br>
+ /// Following are the allowed set of format specifiers for each datetime field.<br>
+ /// %Y : The year as a decimal number including the century.<br>
+ /// %m : The month as a decimal number (range 01 to 12).<br>
+ /// %b : The abbreviated month name according to the current locale.<br>
+ /// %B : The full month name according to the current locale.<br>
+ /// %h : The abbreviated month name according to the current locale(same as %b).<br>
+ /// %d : The day of the month as a decimal number(range 01 to 31).<br>
+ /// %e : The day of the month as a decimal number(range 1 to 31). Single digits are preceded by a blank.<br>
+ /// %I : The hour as a decimal number using a 12-hour clock(range 01 to 12).<br>
+ /// %H : The hour as a decimal number using a 24-hour clock(range 00 to 23).<br>
+ /// %k : The hour(24-hour clock) as a decimal number(range 0 to 23). Single digits are preceded by a blank.<br>
+ /// %l : The hour(12-hour clock) as a decimal number(range 1 to 12). Single digits are preceded by a blank.<br>
+ /// %M : The minute as a decimal number(range 00 to 59).<br>
+ /// %p : Either 'AM' or 'PM' according to the given time value, or the corresponding strings for the current locale.Noon is treated as 'PM' and midnight as 'AM'.<br>
+ /// %P : Like p, but in lower case: 'am' or 'pm' or a corresponding string for the current locale.<br>
+ /// %c : The preferred date and time representation for the current locale.<br>
+ /// %x : The preferred date representation for the current locale without the time.<br>
+ /// %X : The preferred time representation for the current locale without the date.<br>
+ /// %r : The complete calendar time using the AM/PM format of the current locale.<br>
+ /// %R : The hour and minute in decimal numbers using the format H:M.<br>
+ /// %T : The time of the day in decimal numbers using the format H:M:S.<br>
+ /// %F : The date using the format %Y-%m-%d.<br>
/// </remarks>
public string DisplayFormat
{