According to the documentation (https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.picker.title?view=xamarin-forms#Xamarin_Forms_Picker_Title), Title
is displayed differently. Actually, it's rendered as a Control.Header
on UWP. Is there any specific reason for this? The combobox the Picker
is rendered with has a proper PlaceholderText
property and it functions flawlessly. Why isn't it used?
It's rather straightforward to work around this issue by creating a descendant of Picker
and minimally modifying its renderer but the reason for the original decision simply escapes me.
Is there any specific reason for this?
The Title property seemed to map more naturally to the ComboBox.Header property than the ComboBox.PlaceholderText property. Especially in the case of pre-filled data, where the PlaceHolderText would never be visible to the user, so the purpose of the form field would not be apparent.
It's rather straightforward to work around this issue by creating a descendant of Picker and minimally modifying its renderer
Yup.
In a cross-platform world, I want my android and iOS and UWP apps to behave roughly the same without having to make custom renderers for each one to ensure they do.
2 years later, this is still the same and we still have to put in a special renderer to make the UWP app show the text in the placeholder bit just like iOS and Android.
No answer!
Most helpful comment
In a cross-platform world, I want my android and iOS and UWP apps to behave roughly the same without having to make custom renderers for each one to ensure they do.
2 years later, this is still the same and we still have to put in a special renderer to make the UWP app show the text in the placeholder bit just like iOS and Android.