dotnet / dotnet/wpf

Thickness should support ctor of all three common ways to create a thickness.

Open
#1,479 1 comment 4 reactions 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Related to https://github.com/dotnet/dotnet-api-docs/pull/2569

Since the ThicknessConverter is one of the most common ways of creating a Thickness object, the Thickness object should support the 3 types of conversion on the ctor.

| | |
| --- | --- |
| `int` | same value for all four sides |
| `int, int` | values for leftright and topbottom |
| `int, int, int, int` | values for each individual side |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.