28 references to TimePicker
Microsoft.Maui.Controls (18)
Hosting\AppHostBuilderExtensions.cs (2)
85 handlersCollection.AddHandler<TimePicker, TimePickerHandler>(); 262 TimePicker.RemapForControls();
PlatformConfiguration\iOSSpecific\TimePicker.cs (4)
4 using FormsElement = Microsoft.Maui.Controls.TimePicker; 29 public static UpdateMode UpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config) 35 public static IPlatformElementConfiguration<iOS, FormsElement> SetUpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config, UpdateMode value)
TimePicker\TimePicker.cs (8)
11 public partial class TimePicker : View, IFontElement, ITextElement, IElementConfiguration<TimePicker>, ITimePicker 14 public static readonly BindableProperty FormatProperty = BindableProperty.Create(nameof(Format), typeof(string), typeof(TimePicker), "t"); 23 public static readonly BindableProperty TimeProperty = BindableProperty.Create(nameof(Time), typeof(TimeSpan), typeof(TimePicker), new TimeSpan(0), BindingMode.TwoWay, 43 readonly Lazy<PlatformConfigurationRegistry<TimePicker>> _platformConfigurationRegistry; 48 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<TimePicker>>(() => new PlatformConfigurationRegistry<TimePicker>(this)); 141 public IPlatformElementConfiguration<T, TimePicker> On<T>() where T : IConfigPlatform 168 if (bindable is TimePicker timePicker)
TimePicker\TimePicker.iOS.cs (2)
9 public static void MapUpdateMode(TimePickerHandler handler, TimePicker timePicker) => 12 public static void MapUpdateMode(ITimePickerHandler handler, TimePicker timePicker)
TimePicker\TimePicker.Mapper.cs (1)
13 TimePickerHandler.Mapper.ReplaceMapping<TimePicker, ITimePickerHandler>(PlatformConfiguration.iOSSpecific.TimePicker.UpdateModeProperty.PropertyName, MapUpdateMode);
ViewExtensions.cs (1)
448 else if (element is TimePicker tp && TimeSpan.TryParse(text, out TimeSpan tpResult))
Microsoft.Maui.Controls.Compatibility (10)
iOS\Renderers\TimePickerRenderer.cs (10)
32 public abstract class TimePickerRendererBase<TControl> : ViewRenderer<TimePicker, TControl> 83 protected override void OnElementChanged(ElementChangedEventArgs<TimePicker> e) 146 if (e.PropertyName == TimePicker.TimeProperty.PropertyName || e.PropertyName == TimePicker.FormatProperty.PropertyName) 151 else if (e.PropertyName == TimePicker.TextColorProperty.PropertyName || e.PropertyName == VisualElement.IsEnabledProperty.PropertyName) 153 else if (e.PropertyName == TimePicker.CharacterSpacingProperty.PropertyName) 155 else if (e.PropertyName == TimePicker.FontAttributesProperty.PropertyName || 156 e.PropertyName == TimePicker.FontFamilyProperty.PropertyName || e.PropertyName == TimePicker.FontSizeProperty.PropertyName) 257 ElementController.SetValueFromRenderer(TimePicker.TimeProperty, _picker.Date.ToDateTime() - new DateTime(1, 1, 1));