MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

INotifyDataErrorInfo Error Message is overflowing the TextBox inside a DataGrid

Abierto
#2,815 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug evaluation required
Lenguaje dominante
C#
Estrellas
16.3k
Forks
3.5k
Merge medio
1 d 22 h
PR fusionados (30 d)
8

Descripción

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.
Problem 1

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.
    Problem 2

  • Then cleared the text by clicking the clear icon. (Noticed that the position of the error message is corrected)
    Problem 2 - After clicking the clear icon of the TextBox

  • Retype some text. (Everything is fine as of now)
    Problem 2 - Retype some correct text

  • I tried to scroll, going down. (Problem occurred again)
    Problem 2 - After making some scroll

  • Then scroll again, going up. (Still the same problem)
    Problem 2 - After making some scroll going to top

Version

using version 4.5.0

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el problema en un WPF DataGrid con 100 elementos TextBox, validación mediante INotifyDataErrorInfo y la versión 4.5.0 indicada de MaterialDesignInXamlToolkit. Compara el comportamiento con ValidationRules, el borrado del texto y el desplazamiento. Se considera terminado cuando los mensajes de validación permanecen correctamente posicionados para todas las filas durante la edición y el desplazamiento.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
desktop
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.