using Android.Content; using Android.Runtime; using Android.Util; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.Views; namespace Shared { /// /// 日期视图 /// public class DateView : View { /// /// 当前视图 /// /// The android text. AndroidDatePicker currentAndroidDatePicker { get { return AndroidView as AndroidDatePicker; } set { AndroidView = value; } } /// /// 年 /// public int Year { get { return currentAndroidDatePicker.Year; } } /// /// 月 /// public int Month { get { return currentAndroidDatePicker.Month; } } /// /// 天 /// public int Day { get { return currentAndroidDatePicker.DayOfMonth; } } /// /// 实例 /// public DateView() { currentAndroidDatePicker = new AndroidDatePicker(Application.Activity); } /// /// Android 原生 AndroidDatePicker /// class AndroidDatePicker : Android.Widget.DatePicker { public AndroidDatePicker(Context context) : base(context) { } } } }