dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Property HasErrors of ObservableValidator is auto-generated in controls with auto-generation

Open arivoir opened this issue 1 year ago • 3 comments

Describe the bug

When binding an object inheriting ObservableValidator class to a control that has auto-generation a field is created for that property.

For instance when binding to WPF DataGrid the following column appears image

Regression

No response

Steps to reproduce

1. Create a WPF Project
2. Add a DataGrid element to the page
3. Create an object inheriting ObservableValidator
4. Create a collection of the items in step 3.
5. Set the collection in the ItemsSource property of the DataGrid created in step 2.

Expected behavior

No column should be generated for the property HasErrors

Screenshots

No response

IDE and version

VS 2022

IDE version

No response

Nuget packages

  • [ ] CommunityToolkit.Common
  • [ ] CommunityToolkit.Diagnostics
  • [ ] CommunityToolkit.HighPerformance
  • [X] CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.2.2

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

arivoir avatar May 28 '24 20:05 arivoir