Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[UWP] Picker placeholder text #3646

Closed
deakjahn opened this issue Aug 23, 2018 · 3 comments
Closed

[UWP] Picker placeholder text #3646

deakjahn opened this issue Aug 23, 2018 · 3 comments

Comments

@deakjahn
Copy link

deakjahn commented Aug 23, 2018

Description

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.

Steps to Reproduce

  1. Use a Picker.
  2. Set its Title.
  3. Run on UWP.

Basic Information

  • Version with issue: current
  • Last known good version: none
@pauldipietro pauldipietro added this to New in Triage Aug 23, 2018
@hartez
Copy link
Contributor

hartez commented Aug 24, 2018

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.

@hartez hartez closed this as completed Aug 24, 2018
Triage automation moved this from New to Closed Aug 24, 2018
@samhouts samhouts removed this from Closed in Triage Sep 24, 2018
@MitchBomcanhao
Copy link

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.

@hammondreg
Copy link

No answer!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants