Date Picker is a component that allows the user to select a date.
To use this component, install the Zebble.DateTimePicker nuget package.
It's open source and available on GitHub. Also we welcome any contributions to enhace it.
It is initially displayed similar to a drop-down list control, showing the currently selected date (or the placeholder text). When the user taps it, it will then open a dialog to show day, month and year selection controls.
It is a boolean property that determines whether user can select nothing or not. The default value is false.
When this property is set to true, after selecting a date, in the next selection, the Cancel button is changed to Remove.
MarkUp:
You can define the text representation of the day value of DatePicker by setting DayFormat property. it is a standard day format string uses a single format specifier. For example, if you want to show Short date pattern in the datepicker(6/15/2009), you should set DayFormat property to "d", or if you want to show Long date pattern in the datepicker (Monday, June 15, 2009), you should set DayFormat property to "D".
In case you want to change how a date picker show the date format you can use the following.
To see all supported standard .NET date formats see this link.
In case you want to change how a date picker show the date format you can use the following.
To see all supported standard .NET date formats see this link.
In case you want to change how a date picker show the date format you can use the following.
To see all supported standard .NET date formats see this link.
Stylesheet has a boolean property named Ignored, which is false by default. When set to true it works the same as "display: none" in HTML. It means that the element will not only be invisible, but also it won't occupy space on the screen.
View has a boolean property named Enabled, which is true by default. When set to false the object will not respond to UI gesture events. But it will remain visible. Also, its PseudoCssState will be set to "disabled" which allows you to specify a visual style for it in CSS.
MarkUp:
<DatePicker BackgroundImageStretch="OriginalRatio" Style.Border="1" BackgroundImagePath="Images/VS.jpg" Enabled="false" />
<DatePicker BackgroundImageStretch="OriginalRatio" Style.Border="1" BackgroundImagePath="Images/VS.jpg" Visible="false"/>
<DatePicker BackgroundImageStretch="OriginalRatio" Style.Border="1" BackgroundImagePath="Images/VS.jpg" Ignored="true"/>
<DatePicker BackgroundImageStretch="OriginalRatio" Style.Border="1" BackgroundImagePath="Images/VS.jpg"/>
You can control the position of DatePicker by setting Style.X and Style.Y properties:
MarkUp:
If the date has not been selected by the user, the PlaceHolder string is shown in the DatePicker box:
You can see some information about rotation in Zebble here: http://zebble.net/docs/rotation-in-zebble
You can see some information about Margin & Padding in Zebble here: http://zebble.net/docs/margin-padding
The default value of YearFrom property is current year and the default value of YearTo is 2026. You can change them by YearFrom and YearTo property.
If you do nit set YearFrom value, user can not set previous years.