dotnet / dotnet/winforms

Can't Bind a Custom IBindingList Component to Controls at DesignTime in .NET 8

Open
#11,646 7 comments 2 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
area-Binding area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### Environment

Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.10.3

### .NET version

.NET 8

### Did it work in .NET Framework?

Yes

### Issue description

We have a custom component that inherits from `IBindingList`, `ITypedList` and we can't bind it to controls at DesignTime. The issue is that it works as expected in .NET Framework

This is how it looks like in Framework
![framework](https://github.com/dotnet/winforms/assets/175200230/0812b473-81b3-42af-9298-a56f0a73769d)

This is in .NET Core
![core](https://github.com/dotnet/winforms/assets/175200230/2a61fc01-161b-4799-b816-d10d4674c56e)

I am creating this issue on behalf of the WinForms team at DevExpress, a Microsoft partner. Our users have encountered the [issue in one of our controls](https://supportcenter.devexpress.com/ticket/details/t1241812/textedit-cannot-bind-to-an-xpservercollectionsource-or-choose-its-properties)

### Steps to reproduce

1. Create a custom component that inherits `IBindingList`, `ITypedList`
2. Try binding it to `TextBox`

Minimal reproduction project attached below
[mrp.zip](https://github.com/user-attachments/files/16158417/mrp.zip)

### Diagnostics

_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.