39 references to Picker
Microsoft.Maui.Controls (26)
Hosting\AppHostBuilderExtensions.cs (2)
78
handlersCollection.AddHandler<
Picker
, PickerHandler>();
258
Picker
.RemapForControls();
Picker\Picker.cs (18)
18
public partial class Picker : View, IFontElement, ITextElement, ITextAlignmentElement, IElementConfiguration<
Picker
>, IPicker
28
BindableProperty.Create(nameof(Title), typeof(string), typeof(
Picker
), default(string));
32
BindableProperty.Create(nameof(TitleColor), typeof(Color), typeof(
Picker
), default(Color));
36
BindableProperty.Create(nameof(SelectedIndex), typeof(int), typeof(
Picker
), -1, BindingMode.TwoWay,
41
BindableProperty.Create(nameof(ItemsSource), typeof(IList), typeof(
Picker
), default(IList),
46
BindableProperty.Create(nameof(SelectedItem), typeof(object), typeof(
Picker
), null, BindingMode.TwoWay,
67
readonly Lazy<PlatformConfigurationRegistry<
Picker
>> _platformConfigurationRegistry;
73
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
Picker
>>(() => new PlatformConfigurationRegistry<
Picker
>(this));
225
BindableProperty.Create("Display", typeof(string), typeof(
Picker
), default(string));
239
var
picker = (
Picker
)bindable;
261
((
Picker
)bindable).OnItemsSourceChanged((IList)oldValue, (IList)newValue);
358
var
picker = (
Picker
)bindable;
365
var
picker = (
Picker
)bindable;
413
public IPlatformElementConfiguration<T,
Picker
> On<T>() where T : IConfigPlatform
Picker\Picker.Mapper.cs (2)
18
PickerHandler.Mapper.ReplaceMapping<
Picker
, IPickerHandler>(nameof(
Picker
.ItemsSource), MapItemsSource);
PlatformConfiguration\iOSSpecific\Picker.cs (4)
4
using FormsElement = Maui.Controls.
Picker
;
25
public static UpdateMode UpdateMode(this IPlatformElementConfiguration<iOS,
FormsElement
> config)
31
public static IPlatformElementConfiguration<iOS,
FormsElement
> SetUpdateMode(this IPlatformElementConfiguration<iOS,
FormsElement
> config, UpdateMode value)
Microsoft.Maui.Controls.Compatibility (13)
iOS\Renderers\PickerRenderer.cs (13)
49
public abstract class PickerRendererBase<TControl> : ViewRenderer<
Picker
, TControl>
69
protected override void OnElementChanged(ElementChangedEventArgs<
Picker
> e)
136
if (e.PropertyName ==
Picker
.HorizontalTextAlignmentProperty.PropertyName)
138
else if (e.PropertyName ==
Picker
.VerticalTextAlignmentProperty.PropertyName)
140
if (e.PropertyName ==
Picker
.TitleProperty.PropertyName || e.PropertyName ==
Picker
.TitleColorProperty.PropertyName)
144
else if (e.PropertyName ==
Picker
.SelectedIndexProperty.PropertyName)
148
else if (e.PropertyName ==
Picker
.CharacterSpacingProperty.PropertyName)
150
else if (e.PropertyName ==
Picker
.TextColorProperty.PropertyName || e.PropertyName == VisualElement.IsEnabledProperty.PropertyName)
152
else if (e.PropertyName ==
Picker
.FontAttributesProperty.PropertyName || e.PropertyName ==
Picker
.FontFamilyProperty.PropertyName ||
153
e.PropertyName ==
Picker
.FontSizeProperty.PropertyName)
272
ElementController.SetValueFromRenderer(
Picker
.SelectedIndexProperty, s.SelectedIndex);