MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Validation error is annoying

Open
#3,190 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

### Bug explanation

![image](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/assets/16451772/dd52380c-6627-40fd-83c3-31c6f332e816)

Firstly I would like the validation error to be placed to the left like in this picture(i edited in paint)without the padding on the left.
![image](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/assets/16451772/f1cc91a9-90b4-4915-9f49-343adfb9487d)

Secondly, I would like the error message to be capped at max the line width of the input.(one line) as seen in the picture below.
![image](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/assets/16451772/bf5f63f2-830c-47f2-b7b6-e45377d9de3d)

if the error message is to big, then make the error message line a dropdown that opens on click or hover to show the whole message(or contained in a scrollview??)....

In any case, the issue(bug) which is very annoying, is the fact that the error message container currently has padding on the left, comes on top of other content(as seen in the first picture) instead of taking up its own space, and thus pushing the content below down.

Can this be changed in an error message container that is permanent there, but toggles visibility to collapsed if there is
no error to be shown? preferably an error message container that expands(if error message is to long)
kind of like the expanders
![image](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/assets/16451772/99ed3d09-4df3-4e91-a1a0-1f00aaabc0e0)

### Version

4.8.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test; start by locating the validation error container used by the toolkit's WPF controls. Compare its current padding, layout, visibility, and text-wrapping behavior with the requested screenshots. Done means validation messages occupy their own space, align without the unwanted left padding, and handle long text as an agreed expandable or constrained display.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.