Skip to content

Red border doesn't disappear with INotifyDataErrorInfo #8969

Open
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


I have attached a simple project reproducing the issue.

The issue is that the red border (meaning there is an error) remains on my control even though error is cleared.

In a WPF app, I have a “MainWindow”, containing a “TestContainer” view (using a ContentControl), containing a “TestUserControl” view.

In the TestUserControlViewModel, when the OutsideString dependency property is set, I clear the error manually. But this is not taken into account and the red border remains --> NOK

If I add a button to the UI to clear the error, then it works and the red border disappears.

It looks like a bug in the framework.

Do you have any idea ?

WpfApp1.zip


Original Comments

Feedback Bot on 3/19/2024, 07:17 PM:

(private comment, text removed)

Ann Yang [MSFT] on 3/20/2024, 00:28 AM:

(private comment, text removed)

Nicolas Géré on 3/20/2024, 03:02 AM:

(private comment, text removed)

Feedback Bot on 3/26/2024, 01:43 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugProduct bug (most likely)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions