Skip to content

The new MVVM-Toolkit got some new bugs with the latest updated.  #3763

@timunie

Description

@timunie

Describe the bug

I am not sure if it is one bug or two. For that reason I will open only one ticket by today. If you think I should divide it I will open a second issue.

Steps to Reproduce

Steps to reproduce the behavior:

Issue 1:

  1. Create a new Project and use ObservableValidator in your ViewModel
  2. Add two different Properties which are required. Make use of The field {0} is required and let the validator replace {0} by the DisplayName.
  3. Notice that both fields get the same message

Issue 2;

  1. Create a new Project and use ObservableValidator in your ViewModel
  2. Do a class-level valididation
  3. The user will get every issue twice.

Expected behavior

The messages should not be reused and every field should get its own message as it was in preview4. Moreover if you perform a class-level-validation every message should be displayed only one time.

Screenshots

Issue 1

  • Field 1:
    image

  • Field 2:
    image

Issue 2:
image

Environment

NuGet Package(s): 

Id                                  Versions                                 ProjectName                                                                                                                                                                                                                        
--                                  --------                                 -----------                                                                                                                                                                                                                        
MahApps.Metro                       {2.4.3}                                  MvvmToolkitValidationSample                                                                                                                                                                                                        
Microsoft.Toolkit.Mvvm              {7.0.0-build.848}                        MvvmToolkitValidationSample     

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19042)
- [x] 20H2 (19042.804)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)
- [X] WPF 

Device form factor:
- [X] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [X] 2019 (version: 16.8.5) 
- [ ] 2019 Preview (version: )

Additional context

The shown sample is available here: https://github.com/timunie/MvvmToolkitValidationSample

/cc @Sergio0694

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions