29 references to DatePicker
Microsoft.Maui.Controls (29)
DatePicker\DatePicker.cs (19)
9 public partial class DatePicker : View, IFontElement, ITextElement, IElementConfiguration<DatePicker>, IDatePicker 12 public static readonly BindableProperty FormatProperty = BindableProperty.Create(nameof(Format), typeof(string), typeof(DatePicker), "d"); 15 public static readonly BindableProperty DateProperty = BindableProperty.Create(nameof(Date), typeof(DateTime), typeof(DatePicker), default(DateTime), BindingMode.TwoWay, 21 public static readonly BindableProperty MinimumDateProperty = BindableProperty.Create(nameof(MinimumDate), typeof(DateTime), typeof(DatePicker), new DateTime(1900, 1, 1), 25 public static readonly BindableProperty MaximumDateProperty = BindableProperty.Create(nameof(MaximumDate), typeof(DateTime), typeof(DatePicker), new DateTime(2100, 12, 31), 46 readonly Lazy<PlatformConfigurationRegistry<DatePicker>> _platformConfigurationRegistry; 51 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<DatePicker>>(() => new PlatformConfigurationRegistry<DatePicker>(this)); 163 var picker = (DatePicker)bindable; 178 var picker = (DatePicker)bindable; 188 var picker = (DatePicker)bindable; 197 var datePicker = (DatePicker)bindable; 206 return ((DateTime)value).Date >= ((DatePicker)bindable).MinimumDate.Date; 211 return ((DateTime)value).Date <= ((DatePicker)bindable).MaximumDate.Date; 215 public IPlatformElementConfiguration<T, DatePicker> On<T>() where T : IConfigPlatform
DatePicker\DatePicker.iOS.cs (2)
9 public static void MapUpdateMode(IDatePickerHandler handler, DatePicker datePicker) 15 public static void MapUpdateMode(DatePickerHandler handler, DatePicker datePicker) =>
DatePicker\DatePicker.Mapper.cs (1)
13 DatePickerHandler.Mapper.ReplaceMapping<DatePicker, IDatePickerHandler>(PlatformConfiguration.iOSSpecific.DatePicker.UpdateModeProperty.PropertyName, MapUpdateMode);
Hosting\AppHostBuilderExtensions.cs (2)
71 handlersCollection.AddHandler<DatePicker, DatePickerHandler>(); 244 DatePicker.RemapForControls();
PlatformConfiguration\iOSSpecific\DatePicker.cs (4)
4 using FormsElement = Microsoft.Maui.Controls.DatePicker; 29 public static UpdateMode UpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config) 35 public static IPlatformElementConfiguration<iOS, FormsElement> SetUpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config, UpdateMode value)
ViewExtensions.cs (1)
453 else if (element is DatePicker dp && DateTime.TryParse(text, out DateTime dpResult))