MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Validation error is annoying
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 16.3k
- 派生
- 3.5k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 8
描述
Bug explanation
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.
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.
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
Version
4.8.1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 没有指定文件或测试;首先定位 toolkit 的 WPF 控件使用的 validation error container。将其当前的 padding、layout、visibility 和 text-wrapping 行为与要求的屏幕截图进行比较。完成的标准是 validation messages 占用自己的空间,在没有不需要的左侧 padding 的情况下对齐,并按照约定以可展开或受限的显示方式处理长文本。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- design, desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100