Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.View
Xamarin.Forms.IElementConfiguration<Xamarin.Forms.DatePicker>
Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._DatePickerRenderer))
A that allows date picking.
The visual representation of a DatePicker is very similar to the one of , except that a special control for picking a date appears in place of a keyboard.
The following example shows a basic use:
XAML for Xamarin.Forms supports the following properties for the class:
Property
Value
-
Format
A string that specifies the display format in the control of the chosen date.
-
Date
An x:FactoryMethod call to the method, or a markup extension call to a method that produces a object. See below.
-
MinimumDate
An x:FactoryMethod call to the method, or a markup extension call to a method that produces a object. See below.
-
MaximumDate
An x:FactoryMethod call to the method, or a markup extension call to a method that produces a object. See below.
The example below creates a working that displays the current date and allows the user to select a date between the specified ranges. The value for the property is specified with the x:Static markup extension, and the and properties are specified by calling the method with the x:FactoryMethod and x:Arguments tags. The example below requires a namespace declaration in the root ContentPage or ContentView tags. In particular, xmlns:sys="clr-namespace:System;assembly=mscorlib" must appear in the attribute list for the root element, so that the XAML parser can resolve the name, sys:DateTime.
yyyy-MM-dd
Jan 1 2000
Dec 31 2050
]]>
Constructor
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Initializes a new instance of the DatePicker class.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.DateTime
Gets or sets the displayed date. This is a bindable property.
The displayed in the DatePicker.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the Date bindable property.
Event
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.EventHandler<Xamarin.Forms.DateChangedEventArgs>
An event fired when the Date property changes.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.String
The format of the date to display to the user. This is a dependency property.
A valid date format.
Format string is the same is passed to DateTime.ToString (string format).
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the Format dependency property.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.DateTime
The highest date selectable for this DatePicker. This is a bindable property.
The maximum selectable for the DateEntry. Default December 31, 2100.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the MaximumDate bindable property.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.DateTime
The lowest date selectable for this DatePicker. This is a bindable property.
The minimum selectable for the DateEntry. Default January 1, 1900.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the MinimumDate bindable property.
Method
2.0.0.0
Xamarin.Forms.IPlatformElementConfiguration<T,Xamarin.Forms.DatePicker>
Xamarin.Forms.IConfigPlatform
To be added.
Returns the platform-specific instance of this , on which a platform-specific method may be called.
To be added.
To be added.
Property
2.0.0.0
Xamarin.Forms.Color
Gets or sets the text color for the date picker.
To be added.
To be added.
Field
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the property.
To be added.