Skip to content

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

@arivoir

Description

@arivoir

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
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions