Permalink
b9fcb19 Mar 23, 2015
@charlespetzold @rzaitov
36 lines (32 sloc) 800 Bytes
using System;
using Xamarin.Forms;
namespace FormsGallery
{
class DatePickerDemoPage : ContentPage
{
public DatePickerDemoPage()
{
Label header = new Label
{
Text = "DatePicker",
FontSize = 50,
FontAttributes = FontAttributes.Bold,
HorizontalOptions = LayoutOptions.Center
};
DatePicker datePicker = new DatePicker
{
Format = "D",
VerticalOptions = LayoutOptions.CenterAndExpand
};
// Build the page.
this.Content = new StackLayout
{
Children =
{
header,
datePicker
}
};
}
}
}