Example #1
0
 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;
 }
Example #2
0
            public static MyDatePickerDialog Create(DatePickerTextView view)
            {
                var frag = new MyDatePickerDialog()
                {
                    hostWidget = view ?? throw new NullReferenceException("Must have a valid DatePickerTextView for the host.")
                };

                return(frag);
            }