dotnet / dotnet/runtime

[API Proposal]: Add IValueConverter to System.ComponentModel

Open
#126,692 3 comments 1 reaction 0 assignees View on GitHub
api-suggestion area-System.ComponentModel
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

### Background and motivation

All XAML-based UI frameworks require an `IValueConverter`, but there is no common definition.
Adding `IValueConverter` to the BCL would allow developers to share converters across different UI frameworks.

### API Proposal

[IValueConverter](https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IValueConverter.cs)

### API Usage

[IValueConverter](https://learn.microsoft.com/zh-cn/dotnet/api/system.windows.data.ivalueconverter)

### Alternative Designs

_No response_

### Risks

_No response_

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.