DatePicker

Inheritance: Element -> NavigableElement -> VisualElement -> View Xamarin.Forms documentation: DatePicker API / Guide

For details on how the control actually works, please refer to the Xamarin.Forms documentation.

Constructors

Properties

iOS-specific Properties

Usages

DatePicker(DateTime.Now, DateTimeChanged)
    .characterSpacing(1.0)
    .format("dd/MM/yyyy")
    .minimumDate(DateTime.Now)
    .maximumDate(DateTime.Now.AddYears(1))
    .textColor(Color.Red.ToFabColor(), Color.Blue..ToFabColor())
    .font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
    .textTransform(TextTransform.Lowercase)

Get access to the underlying Xamarin.Forms.DatePicker

let datePickerRef = ViewRef<DatePicker>()

DatePicker(DateTime.Now, DateTimeChanged)
    .reference(datePickerRef)

Last updated