26 references to DatePicker
Microsoft.Maui.Controls (26)
DatePicker\DatePicker.cs (19)
11
public partial class DatePicker : View, IFontElement, ITextElement, IElementConfiguration<
DatePicker
>, IDatePicker
14
public static readonly BindableProperty FormatProperty = BindableProperty.Create(nameof(Format), typeof(string), typeof(
DatePicker
), "d");
17
public static readonly BindableProperty DateProperty = BindableProperty.Create(nameof(Date), typeof(DateTime), typeof(
DatePicker
), default(DateTime), BindingMode.TwoWay,
23
public static readonly BindableProperty MinimumDateProperty = BindableProperty.Create(nameof(MinimumDate), typeof(DateTime), typeof(
DatePicker
), new DateTime(1900, 1, 1),
27
public static readonly BindableProperty MaximumDateProperty = BindableProperty.Create(nameof(MaximumDate), typeof(DateTime), typeof(
DatePicker
), new DateTime(2100, 12, 31),
48
readonly Lazy<PlatformConfigurationRegistry<
DatePicker
>> _platformConfigurationRegistry;
53
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
DatePicker
>>(() => new PlatformConfigurationRegistry<
DatePicker
>(this));
165
var
picker = (
DatePicker
)bindable;
180
var
picker = (
DatePicker
)bindable;
190
var
picker = (
DatePicker
)bindable;
199
var
datePicker = (
DatePicker
)bindable;
208
return ((DateTime)value).Date >= ((
DatePicker
)bindable).MinimumDate.Date;
213
return ((DateTime)value).Date <= ((
DatePicker
)bindable).MaximumDate.Date;
217
public IPlatformElementConfiguration<T,
DatePicker
> On<T>() where T : IConfigPlatform
Hosting\AppHostBuilderExtensions.cs (2)
71
handlersCollection.AddHandler<
DatePicker
, DatePickerHandler>();
250
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))