[API Proposal]: Add IValueConverter to System.ComponentModel
Open
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
Assessment
This issue has not been assessed yet.