dotnet / dotnet/maui

Picker Styling: Borders

Open
#32,055 1 comment 0 reactions 0 assignees View on GitHub
area-controls-picker proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

I would love the ability to have border styling across all platforms for the picker, instead of having to manually add the mappings ourselves

Image

Image

### Public API Changes

So far, I have only really done a mapping on Windows, when I make a PR I will investigate the other platforms

## Windows Example

```csharp
PickerHandler.Mapper.AppendToMapping("Border", (handler, view) =>
{
if (handler.PlatformView is ComboBox comboBox)
{
comboBox.BorderBrush = new SolidColorBrush(Windows.UI.Colors.Red);
comboBox.BorderThickness = new Microsoft.UI.Xaml.Thickness(2);
}
});

```

### Intended Use-Case

Further customisation without having to write platform-specific code

Contributor guide

Open the contributing guide

Research direction

Start at the PickerHandler.Mapper mapping shown in the issue and inspect the picker handler mappings for each platform. Compare the existing Windows example with the other platform implementations, then verify that a public border styling option works consistently across platforms without manual platform-specific mappings.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.