MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
INotifyDataErrorInfo Error Message is overflowing the TextBox inside a DataGrid
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 16.3k
- Forks
- 3.5k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 8
Description
Bug explanation
Is anyone here having the same problem when using INotifyDataErrorInfo where the Error Message of the TextBox is overflowing? No issue when using ValidationRules at all.
I have a DataGrid with 100 items, each item has a TextBox. In my ViewModel, I implemented the INotifyDataErrorInfo. For some reason, if all of the Error Message is shown below the TextBox, some of them are overflowing. I tried using ValidationRules but everything is fine, the problem occurs only when using INotifyDataErrorInfo.
Here is an example of the issue when all of the error is being shown.
Could this be an issue with the DataGrid? The first 20 items are showing the error message in the correct position, but after that until the end of the items is not.
UPDATE: I tried to input the correct entry in the TextBox, then remove the text by clicking the clear icon of the TextBox. After that, the position of the Error Message is corrected, but then I tried to scroll and the problem occur again.
-
I tried typing some text.
-
Then cleared the text by clicking the
clearicon. (Noticed that the position of the error message is corrected)
-
Retype some text. (Everything is fine as of now)
-
I tried to scroll, going down. (Problem occurred again)
-
Then scroll again, going up. (Still the same problem)
Version
using version 4.5.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in a WPF DataGrid with 100 TextBox items, INotifyDataErrorInfo validation, and the reported MaterialDesignInXamlToolkit version 4.5.0. Compare the behavior with ValidationRules, text clearing, and scrolling. Done means validation messages remain correctly positioned for all rows during editing and scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100