dotnet / dotnet/maui

Picker Title displays above the control on Windows

Open
#6,845 14 comments 10 reactions 0 assignees View on GitHub
area-controls-picker platform/windows s/triaged s/verified t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

When running on Windows, the `Picker` displays the `Title` property above the control. According to the documentation, and the behaviour on Android, I expect it to be treated as a placeholder when no item is selected.

[Documentation](https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/frame) snippet:
![image](https://user-images.githubusercontent.com/22332567/166878747-16da65c3-b380-471f-a4a0-d960721e7e14.png)

Windows:
![image](https://user-images.githubusercontent.com/22332567/166879417-56b88961-4b72-4850-9abd-0cf15f2b11ef.png)

Android:
![image](https://user-images.githubusercontent.com/22332567/166879318-f926dbe7-8956-491c-b45d-8c33da370cae.png)

### Steps to Reproduce

1. Create new MAUI app.
2. Add a `Picker` to `MainPage.xaml` as below (direct copy from[ Microsoft's sample code](https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/picker#set-the-itemssource-property))
```



Baboon
Capuchin Monkey
Blue Monkey
Squirrel Monkey
Golden Lion Tamarin
Howler Monkey
Japanese Macaque

```
3. Run on `Windows Machine`

### Version with bug

Release Candidate 2 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows 10 (21H2 | 19044.1645)

### Did you find any workaround?

No

### Relevant log output

```shell
N/A
```

Contributor guide

Open the contributing guide

Research direction

Start with the Picker declared in MainPage.xaml using the documented ItemsSource sample, and reproduce it on a Windows Machine. Compare the Windows result with the documented and Android behavior; done means an unselected Picker treats its Title as a placeholder rather than displaying it above the control.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.