microsoft / microsoft/microsoft-ui-xaml

Color class is missing from WindowsUI

Open
#10,861 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-External
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

We are meant to be able to use the Color class...
```
Color.FromArgb(...)
```
But Color class is not available in WindowsUI. The only options I have are...
System.Drawing
ABI.Windows.UI
Windows.UI

We only have access to Colors static color definitions.

Image

### Why is this important?

This is important because my audience expects to see colors other than the predefined colors.

### Steps to reproduce the bug

Type Color, right click to bring in the reference. No option is available.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the missing Color.FromArgb reference in a WindowsUI sample and inspect the existing Colors API and related color types; done means the Color class is available and custom ARGB colors can be created without losing the predefined Colors definitions.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.