protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); datePicker = FindViewById <DatePickerTextView>(Resource.Id.date_picker_view); datePicker.DateChanged += DatePicker_DateChanged; }
public static DatePickerTextViewCalendarDialogFragment Create(DatePickerTextView view) { var frag = new DatePickerTextViewCalendarDialogFragment() { hostWidget = view ?? throw new NullReferenceException("Must have a valid DatePickerTextView for the host.") }; return(frag); }