You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using data validation against a user-entered value via a TextBox with UpdateSourceTrigger=PropertyChanged, I have noticed that whenever the user enters an incorrect value, the error popup will actually appear briefly at the top of the screen before returning to the correct place besides the offending TextBox.
This looks extremely similar, if not identical, to #4120. But confusingly, I get the same behaviour even if I remove ValidatesOnExceptions=True.
Another issue, #3809, which is for a different bug, however there was a screenshot included in the replies that perfectly demonstrates what is occurring for me. However, here is a video recorded from my machine. This occurs when running in Debug and Release.
Recording.2023-05-29.040656.mp4
Steps to reproduce
Have a model for data validation that implements INotifyDataErrorInfo:
publicclassRouter:ValidationModelBase{privatestringrouterIpv4Address;publicstringRouterIpv4Address{get=>this.routerIpv4Address;set{if(value!=this.routerIpv4Address){this.RemoveErrors(nameof(this.RouterIpv4Address));if(!NetworkService.VerifyIpv4Address(value))// hardcode true/false here to mimic actual verification for the purpose of duplication{this.AddErrors(nameof(this.RouterIpv4Address),"Not a valid IPv4 value");}this.routerIpv4Address=value;}}}}
Use this model as the backing field for a property you intend to validate inside a ViewModel:
Describe the bug
When using data validation against a user-entered value via a
TextBox
withUpdateSourceTrigger=PropertyChanged
, I have noticed that whenever the user enters an incorrect value, the error popup will actually appear briefly at the top of the screen before returning to the correct place besides the offendingTextBox
.This looks extremely similar, if not identical, to #4120. But confusingly, I get the same behaviour even if I remove
ValidatesOnExceptions=True
.Another issue, #3809, which is for a different bug, however there was a screenshot included in the replies that perfectly demonstrates what is occurring for me. However, here is a video recorded from my machine. This occurs when running in Debug and Release.
Recording.2023-05-29.040656.mp4
Steps to reproduce
INotifyDataErrorInfo
:Expected behavior
The error only appears alongside the
TextBox
.Actual behavior
The error briefly flashes at the top of the screen.
Environment
Screenshots
Video included above.
The text was updated successfully, but these errors were encountered: